Skip to content

Commit

Permalink
try to comply with help module docstring requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jul 3, 2023
1 parent cdef11d commit 187f415
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
9 changes: 7 additions & 2 deletions modules/Random.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
"""
Generates random numbers or chooses between options.
- `roll XdY`: roll X dies with Y sides
- `choose X or Y (or Z or...)`: choose between as many options as are given
Roll dice
roll X dies with Y sides
`roll XdY`
Make a choice
choose between as many options as are given
`choose X or Y (or Z or...)`
"""

import re
Expand Down
4 changes: 1 addition & 3 deletions modules/Silly.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""
Provides quirky responses for some pre-programmed cases, most unprompted.
If a message from this module interrupts a desired behavior, re-send your
Provides quirky responses for some pre-programmed cases, most unprompted. If a message from this module interrupts a desired behavior, re-send your
previous message and the joke won't trigger.
- `s, say X`: `X!`
Expand Down
14 changes: 11 additions & 3 deletions modules/StampyControls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
"""
Allows devs to manage some Stampy functions
- `reboot`: reboot Stampy according to `BOT_REBOOT`
- `stats`: Stats about Stampy
- `resetinviteroles`: reset the roles for people with invitation permissions
Reboot
Reboot Stampy according to `BOT_REBOOT`
`reboot`
Stats
Stats about Stampy, like resource usage and modules loaded
`stats`
Reset invite roles
reset the roles for people with invitation permissions
`resetinviteroles`
"""

import os
Expand Down
4 changes: 1 addition & 3 deletions modules/duckduckgo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""
Checks if DuckDuckGo has a definition for what you're asking about.
For example, "what is linear algebra" will get the first paragraph of the
Checks if DuckDuckGo has a definition for what you're asking about. For example, "what is linear algebra" will get the first paragraph of the
Wikipedia article for linear algebra.
"""

Expand Down
9 changes: 6 additions & 3 deletions modules/why.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
"""
Gives traceback for a specified message.
To use, respond to my message of concern and say "Why did you say that?"
Basic traceback
Give a brief summary of why the message you're responding to was sent.
`why did you say this?`
For a much more detailed traceback, respond and say "Why did you say that,
specifically?"
Detailed traceback
Give a long and detailed explanation of Stampy's thought process.
"Why did you say that, specifically?"
"""

import re
Expand Down

0 comments on commit 187f415

Please sign in to comment.