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:
@@ -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 `
|
||||
|
||||
Reference in New Issue
Block a user