Merge branch 'develop' of github.com:ClouDev/CloudBot into develop
This commit is contained in:
commit
b87d3fbbbe
1 changed files with 6 additions and 4 deletions
|
@ -90,7 +90,7 @@ def db_search(db, nick, query):
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def todo(inp, nick='', chan='', db=None, notice=None, bot=None):
|
def todo(inp, nick='', chan='', db=None, notice=None, bot=None):
|
||||||
".todo (add|del|list|search) [@user] args -- Manipulates your list of todos."
|
".todo (add|del|list|search) args -- Manipulates your list of todos."
|
||||||
|
|
||||||
db_init(db)
|
db_init(db)
|
||||||
|
|
||||||
|
@ -99,9 +99,11 @@ def todo(inp, nick='', chan='', db=None, notice=None, bot=None):
|
||||||
|
|
||||||
args = parts[1:]
|
args = parts[1:]
|
||||||
|
|
||||||
if len(args) and args[0].startswith("@"):
|
# code to allow users to access each others factoids and a copy of help
|
||||||
nick = args[0][1:]
|
# ".todo (add|del|list|search) [@user] args -- Manipulates your list of todos."
|
||||||
args = args[1:]
|
#if len(args) and args[0].startswith("@"):
|
||||||
|
# nick = args[0][1:]
|
||||||
|
# args = args[1:]
|
||||||
|
|
||||||
if cmd == 'add':
|
if cmd == 'add':
|
||||||
if not len(args):
|
if not len(args):
|
||||||
|
|
Reference in a new issue