15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
module.exports = (lib) => {
|
|
lib.trigger.add({
|
|
name: 'delete',
|
|
call: /^\!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'
|
|
});
|
|
}; |