help system
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user