cleanup lol
This commit is contained in:
parent
fea750f11f
commit
3dae5a2437
|
@ -20,32 +20,22 @@ module.exports = bot => {
|
||||||
bot._trigger.set("kiss", new bot.trigger({
|
bot._trigger.set("kiss", new bot.trigger({
|
||||||
call: /^(\.|\/)kiss/i,
|
call: /^(\.|\/)kiss/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`(づ。◕‿‿◕。)づ" [color=red]。。・゜゜・。。・゜❤[/color] [b]${e.args[0] || e.user.nick}[/b] [color=red]❤[/color]`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`(づ。◕‿‿◕。)づ" [color=red]。。・゜゜・。。・゜❤[/color] [b]${args.join(" ").trim()}[/b] [color=red]❤[/color]`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("hug", new bot.trigger({
|
bot._trigger.set("hug", new bot.trigger({
|
||||||
call: /^(\.|\/)hug/i,
|
call: /^(\.|\/)hug/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`[color=red]♡❤♡♥[/color] [b]${e.args[0] || e.user.nick}[/b] [color=red]♥♡❤♡♥[/color]`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`[color=red]♡❤♡♥[/color] [b]${args.join(" ").trim()}[/b] [color=red]♥♡❤♡♥[/color]`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("kill", new bot.trigger({
|
bot._trigger.set("kill", new bot.trigger({
|
||||||
call: /^(\.|\/)kill/i,
|
call: /^(\.|\/)kill/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
|
|
||||||
e.replyAction(data.kill_templates[~~(Math.random() * data.kill_templates.length)]
|
e.replyAction(data.kill_templates[~~(Math.random() * data.kill_templates.length)]
|
||||||
.replace("{user}", `[b]${args[0]}[/b]`)
|
.replace("{user}", `[b]${e.args[0] || e.user.nick}[/b]`)
|
||||||
.replace("{limbs}", data.kill_parts.limbs[~~(Math.random() * data.kill_parts.limbs.length)])
|
.replace("{limbs}", data.kill_parts.limbs[~~(Math.random() * data.kill_parts.limbs.length)])
|
||||||
.replace("{gun}", data.kill_parts.gun[~~(Math.random() * data.kill_parts.gun.length)])
|
.replace("{gun}", data.kill_parts.gun[~~(Math.random() * data.kill_parts.gun.length)])
|
||||||
.replace("{weapon_stab}", data.kill_parts.weapon_stab[~~(Math.random() * data.kill_parts.weapon_stab.length)])
|
.replace("{weapon_stab}", data.kill_parts.weapon_stab[~~(Math.random() * data.kill_parts.weapon_stab.length)])
|
||||||
|
@ -62,12 +52,8 @@ module.exports = bot => {
|
||||||
bot._trigger.set("yiff", new bot.trigger({
|
bot._trigger.set("yiff", new bot.trigger({
|
||||||
call: /^(\.|\/)yiff/i,
|
call: /^(\.|\/)yiff/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
|
|
||||||
e.replyAction(data.yiff[~~(Math.random() * data.yiff.length)]
|
e.replyAction(data.yiff[~~(Math.random() * data.yiff.length)]
|
||||||
.split("{user}").join(`[b]${args[0]}[/b]`)
|
.split("{user}").join(`[b]${e.args[0] || e.user.nick}[/b]`)
|
||||||
.split("{yiffer}").join(`[b]${e.user.nick}[/b]`)
|
.split("{yiffer}").join(`[b]${e.user.nick}[/b]`)
|
||||||
.split("{nick}").join(`[b]${e.self.me.nickname}[/b]`)
|
.split("{nick}").join(`[b]${e.self.me.nickname}[/b]`)
|
||||||
.split("{channel}").join(`${e.channel}`)
|
.split("{channel}").join(`${e.channel}`)
|
||||||
|
@ -78,50 +64,36 @@ module.exports = bot => {
|
||||||
bot._trigger.set("bier", new bot.trigger({
|
bot._trigger.set("bier", new bot.trigger({
|
||||||
call: /^(\.|\/)bier/i,
|
call: /^(\.|\/)bier/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`schenkt ein kühles Blondes an [b]${e.args[0] || e.user.nick}[/b] aus.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`schenkt ein kühles Blondes an [b]${args[0]}[/b] aus.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("fucken", new bot.trigger({
|
bot._trigger.set("fucken", new bot.trigger({
|
||||||
call: /^(\.|\/)fucken/i,
|
call: /^(\.|\/)fucken/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
const user = e.args[0] || e.user.nick;
|
||||||
args.shift();
|
e.replyAction(`fuckt [b]${user}[/b] und tötet [b]${user}[/b] anschließend.`);
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`fuckt [b]${args[0]}[/b] und tötet [b]${args[0]}[/b] anschließend.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("hack", new bot.trigger({
|
bot._trigger.set("hack", new bot.trigger({
|
||||||
call: /^(\.|\/)hack/i,
|
call: /^(\.|\/)hack/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`hacking ${e.args[0] || e.user.nick}...`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`hacking ${args[0]}...`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("spit", new bot.trigger({
|
bot._trigger.set("spit", new bot.trigger({
|
||||||
call: /^(\.|\/)spit/i,
|
call: /^(\.|\/)spit/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`spits on [b]${e.args[0] || e.user.nick}[/b] like a dirty whore.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`spits on [b]${args[0]}[/b] like a dirty whore.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("assume", new bot.trigger({
|
bot._trigger.set("assume", new bot.trigger({
|
||||||
call: /^(\.|\/)assume/i,
|
call: /^(\.|\/)assume/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`Assuming [b]${e.args[0] || e.user.nick}'s[/b] gender... it's a ${data.genders[~~(Math.random() * data.genders.length)]}.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`Assuming [b]${args[0]}'s[/b] gender... it's a ${data.genders[~~(Math.random() * data.genders.length)]}.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -178,11 +150,8 @@ module.exports = bot => {
|
||||||
bot._trigger.set("slap", new bot.trigger({
|
bot._trigger.set("slap", new bot.trigger({
|
||||||
call: /^(\.|\/)slap/i,
|
call: /^(\.|\/)slap/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(data.slap[~~(Math.random() * data.slap.length)]
|
e.replyAction(data.slap[~~(Math.random() * data.slap.length)]
|
||||||
.replace("{user}", `[b]${args[0]}[/b]`)
|
.replace("{user}", `[b]${e.args[0] || e.user.nick}[/b]`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -13,39 +13,31 @@ const data = {
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.keys(data).forEach(cur => {
|
Object.keys(data).forEach(cur => {
|
||||||
sql.exec(`select \`data\` from \`useless\` where \`trigger\` = '${cur}' limit 1`, (err, row) => {
|
sql.exec("select `data` from `useless` where `trigger` = ? limit 1", [cur])
|
||||||
data[cur] = JSON.parse(row[0].data);
|
.then(rows => {
|
||||||
});
|
data[cur] = JSON.parse(rows[0].data);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = bot => {
|
module.exports = bot => {
|
||||||
bot._trigger.set("abschieben", new bot.trigger({
|
bot._trigger.set("abschieben", new bot.trigger({
|
||||||
call: /^(\.|\/)abschieben/i,
|
call: /^(\.|\/)abschieben/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`schiebt [b]${e.args[0] || e.user.nick}[/b] ${data.abschieben[~~(Math.random() * data.abschieben.length)]} ab.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`schiebt [b]${args[0]}[/b] ${data.abschieben[~~(Math.random() * data.abschieben.length)]} ab.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("butterkaese", new bot.trigger({
|
bot._trigger.set("butterkaese", new bot.trigger({
|
||||||
call: /^(\.|\/)butterkäse/i,
|
call: /^(\.|\/)butterkäse/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`drischt mit einem großen Stück Butterkäse auf [b]${e.args[0] || e.user.nick}[/b] ein.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`drischt mit einem großen Stück Butterkäse auf [b]${args[0]}[/b] ein.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("notschlachten", new bot.trigger({
|
bot._trigger.set("notschlachten", new bot.trigger({
|
||||||
call: /^(\.|\/)notschlachten/i,
|
call: /^(\.|\/)notschlachten/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`notschlachtet [b]${e.args[0] || e.user.nick}[/b] und entsorgt die Leiche im Biomüll`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`notschlachtet [b]${args[0]}[/b] und entsorgt die Leiche im Biomüll`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -59,11 +51,8 @@ module.exports = bot => {
|
||||||
bot._trigger.set("kaffee", new bot.trigger({
|
bot._trigger.set("kaffee", new bot.trigger({
|
||||||
call: /^(\.|\/)kaffee/i,
|
call: /^(\.|\/)kaffee/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(data.kaffee[~~(Math.random() * data.kaffee.length)]
|
e.replyAction(data.kaffee[~~(Math.random() * data.kaffee.length)]
|
||||||
.replace("{user}", `[b]${args[0]}[/b]`)
|
.replace("{user}", `[b]${e.args[0] || e.user.nick}[/b]`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -71,11 +60,8 @@ module.exports = bot => {
|
||||||
bot._trigger.set("tee", new bot.trigger({
|
bot._trigger.set("tee", new bot.trigger({
|
||||||
call: /^(\.|\/)tee/i,
|
call: /^(\.|\/)tee/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(data.tee[~~(Math.random() * data.tee.length)]
|
e.replyAction(data.tee[~~(Math.random() * data.tee.length)]
|
||||||
.replace("{user}", `[b]${args[0]}[/b]`)
|
.replace("{user}", `[b]${e.args[0] || e.user.nick}[/b]`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -83,48 +69,35 @@ module.exports = bot => {
|
||||||
bot._trigger.set("uwe_quotes", new bot.trigger({
|
bot._trigger.set("uwe_quotes", new bot.trigger({
|
||||||
call: /^(\.|\/)(boll|firecooler|kinski|stoll)$/i,
|
call: /^(\.|\/)(boll|firecooler|kinski|stoll)$/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().substring(1);
|
e.reply(data[`quotes_${e.cmd}`][~~(Math.random() * data[`quotes_${e.cmd}`].length)]);
|
||||||
e.reply(data[`quotes_${args}`][~~(Math.random() * data[`quotes_${args}`].length)]);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("wusel", new bot.trigger({
|
bot._trigger.set("wusel", new bot.trigger({
|
||||||
call: /^(\.|\/)wusel/i,
|
call: /^(\.|\/)wusel/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`wuselt [b]${e.args[0] || e.user.nick}[/b] über den Haufen.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`wuselt [b]${args[0]}[/b] über den Haufen.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("mett", new bot.trigger({
|
bot._trigger.set("mett", new bot.trigger({
|
||||||
call: /^(\.|\/)mett/i,
|
call: /^(\.|\/)mett/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`Jamba Mettscanner: [b]${e.args[0] || e.user.nick}[/b] ist zu ${~~(Math.random() * 100 + 1)}% Mett.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`Jamba Mettscanner: [b]${args[0]}[/b] ist zu ${~~(Math.random() * 100 + 1)}% Mett.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("rotenburg", new bot.trigger({
|
bot._trigger.set("rotenburg", new bot.trigger({
|
||||||
call: /^(\.|\/)rotenburg/i,
|
call: /^(\.|\/)rotenburg/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`verarbeitet [b]${e.args[0] || e.user.nick}[/b] zu Hackfleisch.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`verarbeitet [b]${args[0]}[/b] zu Hackfleisch.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("pee", new bot.trigger({
|
bot._trigger.set("pee", new bot.trigger({
|
||||||
call: /^(\.|\/)pee/i,
|
call: /^(\.|\/)pee/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`pisst in [b]${e.args[0] || e.user.nick}[/b]s Gesicht.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`pisst in [b]${args[0]}[/b]s Gesicht.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -145,20 +118,14 @@ module.exports = bot => {
|
||||||
bot._trigger.set("haram", new bot.trigger({
|
bot._trigger.set("haram", new bot.trigger({
|
||||||
call: /^(\.|\/)haram/i,
|
call: /^(\.|\/)haram/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`[b]${e.args[0] || e.user.nick}[/b] ist ${(~~(Math.random() * 2) ? "haram" : "nicht haram")}.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`[b]${args[0]}[/b] ist ${(~~(Math.random() * 2) ? "haram" : "nicht haram")}.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("sacklutscher", new bot.trigger({
|
bot._trigger.set("sacklutscher", new bot.trigger({
|
||||||
call: /^(\.|\/)lutschsack/i,
|
call: /^(\.|\/)lutschsack/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`[b]${e.user.nick}[/b] legt Rosen aus und lutscht den Sack von [b]${e.args[0] || e.user.nick}[/b]`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`[b]${e.user.nick}[/b] legt Rosen aus und lutscht den Sack von [b]${args[0]}[/b]`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -186,20 +153,14 @@ module.exports = bot => {
|
||||||
bot._trigger.set("wasser", new bot.trigger({
|
bot._trigger.set("wasser", new bot.trigger({
|
||||||
call: /^(\.|\/)wasser/i,
|
call: /^(\.|\/)wasser/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`kippt [b]${e.args[0] || e.user.nick}[/b] einen Eimer Wasser über den Kopf.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`kippt [b]${args[0]}[/b] einen Eimer Wasser über den Kopf.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("normie", new bot.trigger({
|
bot._trigger.set("normie", new bot.trigger({
|
||||||
call: /^(\.|\/)normie/i,
|
call: /^(\.|\/)normie/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.reply(`Jamba Normiescanner: [b]${e.args[0] || e.user.nick}[/b] ist zu ${~~(Math.random() * 100 + 1)}% ein Normie.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.reply(`Jamba Normiescanner: [b]${args[0]}[/b] ist zu ${~~(Math.random() * 100 + 1)}% ein Normie.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -220,60 +181,42 @@ module.exports = bot => {
|
||||||
bot._trigger.set("meditieren", new bot.trigger({
|
bot._trigger.set("meditieren", new bot.trigger({
|
||||||
call: /^(\.|\/)meditieren/i,
|
call: /^(\.|\/)meditieren/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`meditiert zusammen mit [b]${e.args[0] || e.user.nick}[/b] Metta.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`meditiert zusammen mit [b]${args[0]}[/b] Metta.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("duden", new bot.trigger({
|
bot._trigger.set("duden", new bot.trigger({
|
||||||
call: /^(\.|\/)duden/i,
|
call: /^(\.|\/)duden/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`drischt mit einem großen Duden auf [b]${e.args[0] || e.user.nick}[/b] ein.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`drischt mit einem großen Duden auf [b]${args[0]}[/b] ein.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("kscht", new bot.trigger({
|
bot._trigger.set("kscht", new bot.trigger({
|
||||||
call: /^(\.|\/)kscht/i,
|
call: /^(\.|\/)kscht/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`jagt [b]${e.args[0] || e.user.nick}[/b] durch den Raum.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`jagt [b]${args[0]}[/b] durch den Raum.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("bullenpisse", new bot.trigger({
|
bot._trigger.set("bullenpisse", new bot.trigger({
|
||||||
call: /^(\.|\/)bullenpisse/i,
|
call: /^(\.|\/)bullenpisse/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`zapft ein Fläschchen feinsten Bullenurin, verarbeitet diesen zu Red-Bull und serviert ihn [b]${e.args[0] || e.user.nick}[/b] in Form einer Pfanddose.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`zapft ein Fläschchen feinsten Bullenurin, verarbeitet diesen zu Red-Bull und serviert ihn [b]${args[0]}[/b] in Form einer Pfanddose.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("lungenkrebs", new bot.trigger({
|
bot._trigger.set("lungenkrebs", new bot.trigger({
|
||||||
call: /^(\.|\/)lungenkrebs/i,
|
call: /^(\.|\/)lungenkrebs/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
e.replyAction(`dreht [b]${e.args[0] || e.user.nick}[/b] einen prall gefüllten Sargnagel mit feinstem Schwarzer Krauser.`);
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
e.replyAction(`dreht [b]${args[0]}[/b] einen prall gefüllten Sargnagel mit feinstem Schwarzer Krauser.`);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bot._trigger.set("irpg", new bot.trigger({
|
bot._trigger.set("irpg", new bot.trigger({
|
||||||
call: /^(\.|\/)irpg/i,
|
call: /^(\.|\/)irpg/i,
|
||||||
f: e => {
|
f: e => {
|
||||||
let args = e.message.trim().split(" ");
|
const user = e.args[0] || e.user.nick;
|
||||||
args.shift();
|
|
||||||
args[0] = (args[0] == String.empty || typeof args[0] === "undefined" || args[0] == "") ? e.user.nick : args[0];
|
|
||||||
|
|
||||||
rp("http://idlerpg.rizon.net/players.php").then(top => {
|
rp("http://idlerpg.rizon.net/players.php").then(top => {
|
||||||
let prank = 0
|
let prank = 0
|
||||||
, i = 1;
|
, i = 1;
|
||||||
|
@ -281,7 +224,7 @@ module.exports = bot => {
|
||||||
let playerlist = dom.window.document.querySelectorAll("ol > li");
|
let playerlist = dom.window.document.querySelectorAll("ol > li");
|
||||||
let player = null;
|
let player = null;
|
||||||
for(let p of playerlist) {
|
for(let p of playerlist) {
|
||||||
if (p.innerHTML.includes(`player=${args[0]}">`)) {
|
if (p.innerHTML.includes(`player=${user}">`)) {
|
||||||
prank = i;
|
prank = i;
|
||||||
player = p;
|
player = p;
|
||||||
break;
|
break;
|
||||||
|
@ -290,10 +233,10 @@ module.exports = bot => {
|
||||||
}
|
}
|
||||||
if(player !== null) {
|
if(player !== null) {
|
||||||
const [, plevel, pclass, puntil] = player.innerHTML.match(/.*, the level (.*?) (.*?)\. Next level in (.*?)\./);
|
const [, plevel, pclass, puntil] = player.innerHTML.match(/.*, the level (.*?) (.*?)\. Next level in (.*?)\./);
|
||||||
e.reply(`([i]${prank} / ${playerlist.length}[/i]) [b]${args[0]}[/b], the [b]${pclass}[/b]: level: ${plevel}, next level in ${puntil}.`);
|
e.reply(`([i]${prank} / ${playerlist.length}[/i]) [b]${user}[/b], the [b]${pclass}[/b]: level: ${plevel}, next level in ${puntil}.`);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
e.reply(`player [b]${args[0]}[/b] was not found`);
|
e.reply(`player [b]${user}[/b] was not found`);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user