1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2026-05-06 05:40:04 +02:00

Add /word, /words

This commit is contained in:
2019-02-12 03:32:53 +05:30
parent 1f6fc86faa
commit 4d2b2eb650
3 changed files with 27 additions and 3 deletions

View File

@@ -1,13 +1,15 @@
const random = require("./random");
const insults_fun = require("./insult");
const words_fun = require("./words");
const is = require("./is");
module.exports = (bot, [ questions, kys, insults, commands_list ]) => {
module.exports = (bot, [ questions, kys, insults, commands_list, words ]) => {
bot.command("question", (ctx) => ctx.reply(random(questions)()));
bot.command("word", (ctx) => ctx.reply(random(words)()));
bot.command("words", (ctx) => ctx.reply(words_fun(random, words)(ctx)));
bot.telegram.getMe()
.then(bot_user => {
console.log(bot_user);
const default_text = (command, text) => `Do you want to ${text} `
+ `yourself?\nIf no, reply to someone with /${command} to kill`
+ ` them or run /${command} username/name.\nYou can suggest `