Added verse random
This commit is contained in:
parent
043dedf2db
commit
33bc94ed5d
1 changed files with 15 additions and 0 deletions
|
|
@ -176,6 +176,21 @@ func main() {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "random",
|
||||
Description: "select a random verse from the bot's database",
|
||||
Action: cmdHost.Verse().RandomVerse,
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "simulate",
|
||||
Usage: "Simulates a random verse selection from the bot and populates the internal verse rotation status. Requires --chatid.",
|
||||
},
|
||||
&cli.Int64Flag{
|
||||
Name: "chatid",
|
||||
Usage: "Specifies the chat ID to generate a random verse from. If --simulate is specified, this will update the verse rotation statues.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue