Skip to content

Commit

Permalink
dushno
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickolay Kiselyov committed Nov 10, 2023
1 parent cfe5d14 commit d9acc3a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 30 deletions.
4 changes: 4 additions & 0 deletions bot/handlers/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export default class BasicHandlers implements BotHandlers {
text: t("basic.meme.buttons.badumtss"),
callback_data: JSON.stringify({ command: "/badumtss" }),
},
{
text: t("basic.meme.buttons.dushno"),
callback_data: JSON.stringify({ command: "/dushno" }),
},
],
[
{
Expand Down
30 changes: 2 additions & 28 deletions bot/handlers/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,44 +355,18 @@ export default class ServiceHandlers implements BotHandlers {
await MemeHandlers.randomRoosterHandler(bot, msg);
break;
case "/moan":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, "http://soundjax.com/reddo/24227%5EMOAN.mp3");
break;
case "/fart":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, "https://www.tones7.com/media/farts.mp3");
break;
case "/adler":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/adler.mp3`);
break;
case "/rickroll":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/rickroll.mp3`);
break;
case "/rzd":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/rzd.mp3`);
break;
case "/rfoxed":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/rfoxed.mp3`);
break;
case "/zhuchok":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/zhuchok.mp3`);
break;
case "/nani":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/nani.mp3`);
break;
case "/sad":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/sad.mp3`);
break;
case "/badumtss":
case "/dushno":
bot.context(msg).mode.silent = true;
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/badumtss.mp3`);
await EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}${data.command}.mp3`);
break;
default:
break;
Expand Down
7 changes: 5 additions & 2 deletions bot/init/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ export function setRoutes(bot: HackerEmbassyBot): void {
EmbassyHandlers.playinspaceHandler(bot, msg, match[1])
);
bot.onTextExt(rc.command(["fartinspace", "fart"]), (bot, msg) =>
EmbassyHandlers.playinspaceHandler(bot, msg, "https://www.tones7.com/media/farts.mp3")
EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/fart.mp3`)
);
bot.onTextExt(rc.command(["moaninspace", "moan"]), (bot, msg) =>
EmbassyHandlers.playinspaceHandler(bot, msg, "http://soundjax.com/reddo/24227%5EMOAN.mp3")
EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/moan.mp3`)
);
bot.onTextExt(rc.command(["rickroll", "nevergonnagiveyouup"]), (bot, msg) =>
EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/rickroll.mp3`)
Expand All @@ -255,6 +255,9 @@ export function setRoutes(bot: HackerEmbassyBot): void {
bot.onTextExt(rc.command(["sad", "sadtrombone"]), (bot, msg) =>
EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/sad.mp3`)
);
bot.onTextExt(rc.command(["dushno", "openwindow"]), (bot, msg) =>
EmbassyHandlers.playinspaceHandler(bot, msg, `${embassyBase}/dushno.mp3`)
);

// Funds
bot.onTextExt(rc.command(["funds", "fs"]), FundsHandlers.fundsHandler);
Expand Down
1 change: 1 addition & 0 deletions resources/locales/ru/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ basic:
cock: 🐔 Cock
sad: 🎺 Sad
badumtss: 🥁 Badumtss
dushno: 🪟 Dushno
back: ↩️ Назад
admin:
addUser:
Expand Down

0 comments on commit d9acc3a

Please sign in to comment.