bot.on('message', async msg => {
let prefix = '*'
if (msg.content.toLowerCase().startsWith(prefix)) {
let m = msg.content.slice(prefix.length);
for (let cname in commands) {
if (m.startsWith(cname)) {
let args = m.slice(cname.length).split(' ').filter(Boolean);
commands[cname].run(bot, msg, args);
}
}
}
})