Added deletion feature for verse_rotation.
This commit is contained in:
parent
bf6fb1f685
commit
06fc2668c8
1 changed files with 18 additions and 0 deletions
|
|
@ -191,6 +191,24 @@ func main() {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "rotation",
|
||||
Description: "Random verse rotation management",
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "delete",
|
||||
Description: "Delete rotations; this will reset the specified chat's exhausted verses list",
|
||||
Action: cmdHost.Verse().DeleteRotation,
|
||||
Flags: []cli.Flag{
|
||||
&cli.Int64Flag{
|
||||
Name: "chatid",
|
||||
Aliases: []string{"i"},
|
||||
Usage: "Specifies the chat from which rotation records will be removed.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue