2016-08-23 11:23:25 +00:00
|
|
|
module.exports = (bot, trigger, lib) => {
|
|
|
|
trigger.add({
|
|
|
|
name: 'delete',
|
2016-08-23 15:50:30 +00:00
|
|
|
call: new RegExp('^\\!del (\\d+)$', 'i'),
|
2016-08-18 13:43:18 +00:00
|
|
|
level: 100,
|
2016-08-24 07:55:40 +00:00
|
|
|
active: 1,
|
2016-08-23 11:23:25 +00:00
|
|
|
func: (e) => {
|
2016-08-23 15:50:30 +00:00
|
|
|
var id = e.message.split(' ')[1];
|
|
|
|
lib.sql.query("delete from `f0ck`.`items` where `id` = ?", id).on('end', () => {
|
|
|
|
e.reply("f0ck "+id+" deleted");
|
2016-08-23 11:23:25 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
desc: 'delete f0ck'
|
2016-08-18 13:43:18 +00:00
|
|
|
});
|
|
|
|
};
|