module.exports = (bot, trigger, lib) => { trigger.add({ name: 'delete', call: new RegExp('^\\!del (\\d+)$', 'i'), level: 100, active: 1, func: (e) => { var id = e.message.split(' ')[1]; lib.sql.query("delete from `f0ck`.`items` where `id` = ?", id).on('end', () => { e.reply("f0ck "+id+" deleted"); }); }, desc: 'delete f0ck' }); };