Skip to content

Commit

Permalink
add kerjakerjakerja command to meme service
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdyt committed Jan 3, 2024
1 parent dd91d9f commit 694670b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function main() {
}

// TODO: Move this somewhere else
const validCommands = ["blidingej", "covid", "devread", "dukun", "eval", "laodeai", "news", "hilih", "joke", "kktbsys", "yntks", "homework", "illuminati", "c", "cpp", "clisp", "dotnet", "go", "java", "js", "julia", "lua", "php", "python", "ruby", "sqlite3", "ts", "v", "brainfuck", "qr", "quote", "search", "snap"];
const validCommands = ["blidingej", "covid", "devread", "dukun", "eval", "laodeai", "news", "hilih", "joke", "kktbsys", "yntkts", "kerjakerjakerja", "homework", "illuminati", "c", "cpp", "clisp", "dotnet", "go", "java", "js", "julia", "lua", "php", "python", "ruby", "sqlite3", "ts", "v", "brainfuck", "qr", "quote", "search", "snap"];
if (ctx.updateType === "message") {
const command = getCommandName(ctx);
if (command === "" || !validCommands.includes(command)) {
Expand Down
17 changes: 17 additions & 0 deletions src/services/meme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ export function register(bot, cache) {
sendText: "https://i.ibb.co/P1Q0650/yntkts.jpg"
});
});

bot.command("kerjakerjakerja", async (context) => {
const bigGroup = await isBigGroup(context);
const homeGroup = isHomeGroup(context);
if (bigGroup && !homeGroup) return;
await context.telegram.sendDocument(
context.message.chat.id,
"https://s13.gifyu.com/images/SjAzq.gif"
);
await logger.feomContext(context, "kerjakerjakerja", {
sendText: "https://s13.gifyu.com/images/SjAzq.gif"
});
});

bot.command("homework", async (context) => {
const bigGroup = await isBigGroup(context);
Expand Down Expand Up @@ -186,6 +199,10 @@ export function register(bot, cache) {
command: "yntkts",
description: "Yo ndak tahu! Kok tanya saya."
},
{
command: "kerjakerjakerja",
description: "Meme untuk menyemangati para pemuda yang suka bermalas-malasan dan menunda pekerjaan, dan juga bagus untuk membubarkan debat kusir"
},
{
command: "homework",
description: "Ini PR ya ngab?"
Expand Down

0 comments on commit 694670b

Please sign in to comment.