f0ckv1/src/trigger/del.js
2016-09-15 00:05:18 +02:00

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'
});
};