Merge branch 'abocn:main' into main
This commit is contained in:
commit
b327a0c7a2
3 changed files with 41 additions and 40 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -137,6 +137,7 @@ lastfm.json
|
||||||
sw-blocklist.txt
|
sw-blocklist.txt
|
||||||
package-lock.json
|
package-lock.json
|
||||||
bun.lock
|
bun.lock
|
||||||
|
bun.lockb
|
||||||
tmp/
|
tmp/
|
||||||
plugins/
|
plugins/
|
||||||
|
|
||||||
|
|
|
@ -79,4 +79,44 @@ module.exports = (bot) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bot.command(['soggy', 'soggycat'], spamwatchMiddleware, async (ctx) => {
|
||||||
|
const userInput = ctx.message.text.split(' ')[1];
|
||||||
|
|
||||||
|
switch (true) {
|
||||||
|
case (userInput === "2" || userInput === "thumb"):
|
||||||
|
ctx.replyWithPhoto(
|
||||||
|
Resources.soggyCat2, {
|
||||||
|
caption: Resources.soggyCat2,
|
||||||
|
parse_mode: 'Markdown',
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
case (userInput === "3" || userInput === "sticker"):
|
||||||
|
ctx.replyWithSticker(
|
||||||
|
Resources.soggyCatSticker, {
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
case (userInput === "4" || userInput === "alt"):
|
||||||
|
ctx.replyWithPhoto(
|
||||||
|
Resources.soggyCatAlt, {
|
||||||
|
caption: Resources.soggyCatAlt,
|
||||||
|
parse_mode: 'Markdown',
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
ctx.replyWithPhoto(
|
||||||
|
Resources.soggyCat, {
|
||||||
|
caption: Resources.soggyCat,
|
||||||
|
parse_mode: 'Markdown',
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
|
@ -98,44 +98,4 @@ module.exports = (bot) => {
|
||||||
bot.command('gay', spamwatchMiddleware, async (ctx) => {
|
bot.command('gay', spamwatchMiddleware, async (ctx) => {
|
||||||
sendRandomReply(ctx, Resources.gayFlag, 'gayAmount');
|
sendRandomReply(ctx, Resources.gayFlag, 'gayAmount');
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.command(['soggy', 'soggycat'], spamwatchMiddleware, async (ctx) => {
|
|
||||||
const userInput = ctx.message.text.split(' ')[1];
|
|
||||||
|
|
||||||
switch (true) {
|
|
||||||
case (userInput === "2" || userInput === "thumb"):
|
|
||||||
ctx.replyWithPhoto(
|
|
||||||
Resources.soggyCat2, {
|
|
||||||
caption: Resources.soggyCat2,
|
|
||||||
parse_mode: 'Markdown',
|
|
||||||
reply_to_message_id: ctx.message.message_id
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
|
|
||||||
case (userInput === "3" || userInput === "sticker"):
|
|
||||||
ctx.replyWithSticker(
|
|
||||||
Resources.soggyCatSticker, {
|
|
||||||
reply_to_message_id: ctx.message.message_id
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
|
|
||||||
case (userInput === "4" || userInput === "alt"):
|
|
||||||
ctx.replyWithPhoto(
|
|
||||||
Resources.soggyCatAlt, {
|
|
||||||
caption: Resources.soggyCatAlt,
|
|
||||||
parse_mode: 'Markdown',
|
|
||||||
reply_to_message_id: ctx.message.message_id
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
ctx.replyWithPhoto(
|
|
||||||
Resources.soggyCat, {
|
|
||||||
caption: Resources.soggyCat,
|
|
||||||
parse_mode: 'Markdown',
|
|
||||||
reply_to_message_id: ctx.message.message_id
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue