bot.command('clear', async (ctx) => {
var args = ctx.message.text.split(' ');
args.shift()
console.log(' host: ' + args[0] + ' port: ' + args[1] + ' time: ' + args[2] + ' method: ' +args[3])
//AXIOS - Передача GET запроса на сервис с API
try {
var response = await axios.get('', {
params: {
page: "Api",
key: "", //ключ api
host: "https://random.org/",
port: "443",
time: "15",
method: "stop"
}
})
ctx.reply("");
} catch(e) {
console.log(reply)
}
});