2020-06-29 10:57:55 +00:00

55 lines
3.0 KiB
JavaScript

module.exports = {
help: (bot, msg, logger) => {
const help = "help";
if (msg.text && msg.text.toString().toLowerCase().includes(help)) {
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for help");
bot.sendMessage(msg.chat.id, "Hello " + userMention + " please PM me @" + process.env.BOT_USERNAME + " and i'll try to help.", { parse_mode: "HTML" });
}
},
bye: (bot, msg, logger) => {
const bye = "bye";
if (msg.text && msg.text.toString().toLowerCase().includes(bye)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said bye");
bot.sendMessage(msg.chat.id, "Bye " + msg.from.first_name + ", Hope to see you again.");
}
},
iLoveYou: (bot, msg, logger, name) => {
const love = "i love you ";
const lovePlus = love + name.toLowerCase()
if (msg.text && msg.text.toString().toLowerCase().includes(lovePlus)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said they loved me");
bot.sendMessage(msg.chat.id, "I love you too " + msg.from.first_name);
}
},
thankYou: (bot, msg, logger, name) => {
const thankYou = "thank you " + name.toLowerCase();
if (msg.text && msg.text.toString().toLowerCase().includes(thankYou)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said thank you");
bot.sendMessage(msg.chat.id, "You're welcome " + msg.from.first_name);
}
},
youThere: (bot, msg, logger, name) => {
const youThere = "you there " + name.toLowerCase() + "?";
if (msg.text && msg.text.toString().toLowerCase().includes(youThere)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked if im there");
bot.sendMessage(msg.chat.id, "Always...");
}
},
fOff: (bot, msg, logger, name) => {
const fuuk = "fuck off ";
const fuuckPlus = fuuk + name.toLowerCase()
if (msg.text && msg.text.toString().toLowerCase().includes(fuuckPlus)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " told me to fuck off");
bot.sendMessage(msg.chat.id, "Fuck off yourself " + msg.from.first_name + "!");
}
},
antonio: (bot, msg, logger) => {
const antonio = "antonio";
if (msg.text && msg.text.toString().toLowerCase().includes(antonio)) {
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for fileLinked code");
bot.sendMessage(msg.chat.id, userMention + " We do not speak about, He who should not be named in this group.", { parse_mode: "HTML" });
}
},
};