standardised multiline command docstrings
This commit is contained in:
parent
549bb70690
commit
954ea57fce
7 changed files with 8 additions and 7 deletions
|
@ -10,6 +10,7 @@ from util import hook
|
||||||
BUFFER_SIZE = 5000
|
BUFFER_SIZE = 5000
|
||||||
MAX_STEPS = 1000000
|
MAX_STEPS = 1000000
|
||||||
|
|
||||||
|
|
||||||
@hook.command('brainfuck')
|
@hook.command('brainfuck')
|
||||||
@hook.command
|
@hook.command
|
||||||
def bf(inp):
|
def bf(inp):
|
||||||
|
|
|
@ -37,7 +37,7 @@ def nrolls(count, n):
|
||||||
#@hook.regex(valid_diceroll, re.I)
|
#@hook.regex(valid_diceroll, re.I)
|
||||||
@hook.command
|
@hook.command
|
||||||
def dice(inp):
|
def dice(inp):
|
||||||
".dice <diceroll> -- Simulates dicerolls. Example of <diceroll>:"
|
".dice <diceroll> -- Simulates dicerolls. Example of <diceroll>:" \
|
||||||
" '.dice 2d20-d5+4 roll 2'. D20s, subtract 1D5, add 4"
|
" '.dice 2d20-d5+4 roll 2'. D20s, subtract 1D5, add 4"
|
||||||
|
|
||||||
try: # if inp is a re.match object...
|
try: # if inp is a re.match object...
|
||||||
|
|
|
@ -5,7 +5,7 @@ import urllib2
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def gitio(inp):
|
def gitio(inp):
|
||||||
".gitio <url> [code] -- Shorten Github URLs with git.io. [code] is"
|
".gitio <url> [code] -- Shorten Github URLs with git.io. [code] is" \
|
||||||
" a optional custom short code."
|
" a optional custom short code."
|
||||||
split = inp.split(" ")
|
split = inp.split(" ")
|
||||||
url = split[0]
|
url = split[0]
|
||||||
|
|
Reference in a new issue