changed command to .re
This commit is contained in:
parent
4ffc5fe5bf
commit
768bde1f93
|
@ -13,13 +13,13 @@ from util import hook
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command('re')
|
||||||
def reg(bot, input):
|
def reg(bot, input):
|
||||||
".reg <regex> <string> -- matches regular expression in given <string> (seperate regex and string by 2 spaces)"
|
".re <regex> <string> -- matches regular expression in given <string> (seperate regex and string by 2 spaces)"
|
||||||
|
|
||||||
m = ""
|
m = ""
|
||||||
|
|
||||||
if len(input.msg) < 4:
|
if len(input.msg) < 3:
|
||||||
return reg.__doc__
|
return reg.__doc__
|
||||||
|
|
||||||
query = input.inp.partition(" ")
|
query = input.inp.partition(" ")
|
||||||
|
|
Loading…
Reference in New Issue