Skip to content

Commit

Permalink
line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexed01 committed Nov 5, 2023
1 parent 5d1b965 commit 6b441c2
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions buttonpoll/buttonpoll.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ async def advstartpoll(self, ctx: commands.Context, *, arguments: str = ""):
"""
Advanced users: create a pull using command arguments
The help text for this command is too long to fit in the help command. Just run `[p]advstartpoll` to see it.
The help text for this command is too long to fit in the help command. Just run
`[p]advstartpoll` to see it.
"""
if not arguments:
return await ctx.send(
Expand All @@ -160,11 +161,14 @@ async def advstartpoll(self, ctx: commands.Context, *, arguments: str = ""):
**Required arguments:**
- `--channel ID`: The channel ID to start the poll in
- `--question string`: The question to ask
- `--option string`: The options to provide. You can provide between 2 and 5 options. Repeat this argument.
- `--option string`: The options to provide. You can provide between 2 and 5 options. \
Repeat this argument for each option.
**You must also provide one of the following:**
- `--duration integer`: The duration of the poll in seconds. Must be at least 60. Polls may finish up to 60 seconds late, so don't rely on precision timing.
- `--end string`: The time to end the poll. Must be in the format `YYYY-MM-DD HH:MM:SS` (24 hour time) or a Unix timestamp. This is in UTC.
- `--duration integer`: The duration of the poll in seconds. Must be at least 60. \
Polls may finish up to 60 seconds late, so don't rely on precision timing.
- `--end string`: The time to end the poll. \
Must be in the format `YYYY-MM-DD HH:MM:SS` (24 hour time) or a Unix timestamp. This is in UTC.
If both are provided, `--duration` will be used.
Expand All @@ -178,8 +182,12 @@ async def advstartpoll(self, ctx: commands.Context, *, arguments: str = ""):
For the final four optional arguments, they are false if not included, and true if included.
**Examples:**
- `[p]advstartpoll --channel 123456789 --question What is your favourite colour? --option Red --option Blue --option Green --option None of them --duration 3600 --description Choose wisely!`
- `[p]advstartpoll --channel 123456789 --question What is your favourite colour? --option Red --option Blue --option Green --option None of them --end 2021-01-01 12:00:00 --allow-vote-change --send-new-msg`"""
- `[p]advstartpoll --channel 123456789 --question What is your favourite colour? --option Red \
--option Blue --option Green --option None of them --duration 3600 --description \
Choose wisely!`
- `[p]advstartpoll --channel 123456789 --question What is your favourite colour? --option Red \
--option Blue --option Green --option None of them --end 2021-01-01 12:00:00 \
--allow-vote-change --send-new-msg`"""
)

parser = NoExitParser(
Expand Down

0 comments on commit 6b441c2

Please sign in to comment.