mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:24:16 +02:00
feat(arabot): registered group update command
This commit is contained in:
parent
8e7cc9037d
commit
db8871d205
@ -44,6 +44,7 @@ export class OutreachCommand extends Subcommand {
|
|||||||
entries: [
|
entries: [
|
||||||
{ name: 'create', chatInputRun: 'groupCreate' },
|
{ name: 'create', chatInputRun: 'groupCreate' },
|
||||||
{ name: 'add', chatInputRun: 'groupAdd' },
|
{ name: 'add', chatInputRun: 'groupAdd' },
|
||||||
|
{ name: 'update', chatInputRun: 'groupUpdate' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -81,7 +82,19 @@ export class OutreachCommand extends Subcommand {
|
|||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption((option) => option.setName('user')
|
.addStringOption((option) => option.setName('user')
|
||||||
.setDescription('User to add to the group')
|
.setDescription('User to add to the group')
|
||||||
.setRequired(true)))),
|
.setRequired(true)))
|
||||||
|
.addSubcommand((command) => command.setName('update')
|
||||||
|
.setDescription('Update the statistics for the group')
|
||||||
|
.addIntegerOption((option) => option.setName('vegan')
|
||||||
|
.setDescription('How many said would go vegan?'))
|
||||||
|
.addIntegerOption((option) => option.setName('considered')
|
||||||
|
.setDescription('How many seriously considered being vegan?'))
|
||||||
|
.addIntegerOption((option) => option.setName('thanked')
|
||||||
|
.setDescription('How many thanked you for the conversation?'))
|
||||||
|
.addIntegerOption((option) => option.setName('documentary')
|
||||||
|
.setDescription('How many said they would watch a vegan documentary?'))
|
||||||
|
.addIntegerOption((option) => option.setName('educated')
|
||||||
|
.setDescription('How many got educated on veganism or the animal industry?')))),
|
||||||
{
|
{
|
||||||
behaviorWhenNotIdentical: RegisterBehavior.Overwrite,
|
behaviorWhenNotIdentical: RegisterBehavior.Overwrite,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user