Added comments.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user