help system

This commit is contained in:
Flummi
2017-12-04 17:40:24 +01:00
parent 61079e4000
commit d209b2b54e
8 changed files with 58 additions and 1 deletions

View File

@@ -3,6 +3,10 @@ import sql from "../sql";
export default bot => {
bot._trigger.set("rape", new bot.trigger({
call: /^(\.|\/)rape/i,
help: {
text: "Rapes a nick and eventually charge for it",
usage: "[b].rape[/b] [i](<nick>)[/i]"
},
f: e => {
const nick = e.args[0] || e.user.nick;
const rand = Math.round(Math.random());
@@ -27,6 +31,10 @@ export default bot => {
bot._trigger.set("owe", new bot.trigger({
call: /^(\.|\/)owe/i,
help: {
text: "Shows how much a nick owes",
usage: "[b].owe[/b] [i](<nick>)[/i]"
},
f: e => {
const nick = e.args[0] || e.user.nick;
sql.any("select fines from nxy_users where lower(nick) = lower($1) limit 1", [nick])