Push base Telegraf bot
This commit is contained in:
commit
05eddc7734
15 changed files with 818 additions and 0 deletions
46
commands/fun.js
Normal file
46
commands/fun.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
const Strings = require('../locales/english.json');
|
||||
const resources = require('../props/resources.json');
|
||||
|
||||
function furryFunction(ctx) {
|
||||
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
||||
ctx.replyWithAnimation(
|
||||
resources.furryGif, {
|
||||
caption: Strings.isFurry,
|
||||
parse_mode: 'Markdown'
|
||||
}
|
||||
);
|
||||
} else {
|
||||
ctx.reply(
|
||||
Strings.isNtFurry, {
|
||||
parse_mode: 'Markdown'
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function gayFunction(ctx) {
|
||||
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
||||
ctx.replyWithAnimation(
|
||||
resources.gayFlag, {
|
||||
caption: Strings.isGay,
|
||||
parse_mode: 'Markdown'
|
||||
}
|
||||
);
|
||||
} else {
|
||||
ctx.reply(
|
||||
Strings.isNtGay, {
|
||||
parse_mode: 'Markdown'
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = (bot) => {
|
||||
bot.command('furry', (ctx) => {
|
||||
furryFunction(ctx);
|
||||
});
|
||||
|
||||
bot.command('gay', (ctx) => {
|
||||
gayFunction(ctx);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue