f0ckv1/src/trigger/del.js

15 lines
376 B
JavaScript
Raw Normal View History

2016-09-14 22:05:18 +00:00
module.exports = (lib) => {
2016-09-09 11:18:03 +00:00
lib.trigger.add({
2016-08-23 11:23:25 +00:00
name: 'delete',
2016-08-24 20:02:20 +00:00
call: /^\!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
});
};