This commit is contained in:
Flummi
2017-11-22 19:23:43 +01:00
parent e2bb64aa2c
commit ef947060d2
8 changed files with 4847 additions and 21 deletions

View File

@@ -1,11 +1,14 @@
import sql from "../sql.js";
const sfu = require("string-form-utils");
const data = {
yiff: [],
kill_templates: [],
kill_parts: {},
genders: [],
woahs: []
woahs: [],
slap: []
};
Object.keys(data).forEach(cur => {
@@ -78,6 +81,7 @@ module.exports = bot => {
e.replyAction(data.yiff[~~(Math.random() * data.yiff.length)]
.replace("{user}", `[b]${args[0]}[/b]`)
.replace("{yiffer}", `[b]${e.user.nick}[/b]`)
);
}
});
@@ -204,7 +208,7 @@ module.exports = bot => {
bot._trigger.set("meme", {
call: /^(.|\/)meme .*/i,
level: 0,
active: false,
active: true,
clients: ["irc", "tg"],
f: e => {
const args = e.message.trim().substring(6).split("/");
@@ -213,4 +217,30 @@ module.exports = bot => {
}
});
bot._trigger.set("slap", {
call: /^(.|\/)slap/i,
level: 0,
active: true,
clients: ["irc", "tg"],
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)]
.replace("{user}", `[b]${args[0]}[/b]`)
);
}
});
bot._trigger.set("fw", {
call: /^(.|\/)fw .*/i,
level: 0,
active: true,
clients: ["irc", "tg"],
f: e => {
const args = e.message.substring(4).trim();
e.reply(sfu.transformToFullwidth(args.toUpperCase()));
}
});
};