12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
import { ANON_CREDITS } from "../config/mod.ts";
|
|
import { BotContext } from "../mod.ts";
|
|
|
|
const getCreditsText = () => `Credits: ${ANON_CREDITS[Math.floor(Math.random() * ANON_CREDITS.length)]}`;
|
|
|
|
export const postCredits = async (ctx: BotContext, messageId: number) => {
|
|
await ctx.reply(getCreditsText(), {
|
|
reply_parameters: {
|
|
message_id: messageId,
|
|
}
|
|
});
|
|
} |