diff --git a/apps/bot/src/bot.service.ts b/apps/bot/src/bot.service.ts index b854ff8..302482b 100644 --- a/apps/bot/src/bot.service.ts +++ b/apps/bot/src/bot.service.ts @@ -20,6 +20,16 @@ export class BotService implements OnModuleInit { ) { this.bot = new Bot(configService.get('telegram.token')); + this.bot.command('start', async (ctx) => { + await ctx.reply( + 'Welcome, {username}!\n\nGet Started\n\nTo get you up and running, there are two simple steps:\n\n1. Add me to your group or channel\n\nTo add me to your group or channel, simply tap on my username (at the top) and select "Add to Group or Channel".\n\nSelect the group or channel you want.\n\nI will need Admin Rights, but you can disable all additional privileges.\n\n2. Verify me on app.togethercrew.com\n\nHead over to https://app.togethercrew.com.\n\nIn your community settings, add a Telegram platform.\n\nCopy the verify command into your group and send it.\n\nI will take care of the rest.', + ); + }); + + this.bot.command('verify', async (ctx) => { + await ctx.reply('[Coming soon] This will blow your mind.'); + }); + Object.values(IgnoreEvent).map((event) => { this.bot.on(event, () => { this.logger.warn(`Ignoring ${event} event.`); @@ -46,6 +56,11 @@ export class BotService implements OnModuleInit { return; }); }); + + this.bot.api.setMyCommands([ + { command: 'start', description: 'Get started with the TogetherCrewBot' }, + { command: 'verify', description: 'Verify your group.' }, + ]); } async onModuleInit() {