Added comments.

This commit is contained in:
2026-04-14 18:01:44 -04:00
parent 547fef9c75
commit aaac8c3aa7
12 changed files with 21 additions and 6 deletions
+3
View File
@@ -18,7 +18,9 @@ feature.hears(/^\/help/, logHandle("help"), async (ctx: Context) => {
const mutationKey = process.env.GRAPHQL_MUTATION_KEY || "";
const statsSite = process.env.STATS_SITE || "";
// Increments the trigger count
await urql.mutation(increment, { trigger: true, mutationKey });
// Retrieve the command list
const commandsListArr = await getCommandsList(`${statsSite}api/bot`, apiKey);
// const GROUP_IDS = process.env.GROUP_IDS
@@ -67,6 +69,7 @@ feature.hears(/^\/help/, logHandle("help"), async (ctx: Context) => {
}
}
// Create a readable command list string.
const commandsListStr = commandsListArr.reduce((prev, curr) => {
const { command, description, groups } = curr;