This commit is contained in:
iou1name 2020-01-10 06:51:50 -05:00
parent 11f9c1f80c
commit 8cc65f8cbb
2 changed files with 3 additions and 3 deletions

View File

@ -157,8 +157,8 @@ def pickMovie(bot, trigger):
@require_admin @require_admin
@commands('addmovie') @commands('addmovie')
@example('.addmovie Dr. Strangelove or: How I Learned to Stop Worrying and " @example(".addmovie Dr. Strangelove or: How I Learned to Stop Worrying and "
"Love the Bomb') "Love the Bomb")
def addMovie(bot, trigger): def addMovie(bot, trigger):
""" """
Adds the specified movie to the movie database. Adds the specified movie to the movie database.

View File

@ -50,7 +50,7 @@ def addTopic(bot, trigger):
""" """
if len(trigger.args) < 2: if len(trigger.args) < 2:
return bot.msg("Please be providing a topic sir.") return bot.msg("Please be providing a topic sir.")
topic = trigger.args[1] topic = ' '.join(trigger.args[1:])
bot.memory['topic_lock'].acquire() bot.memory['topic_lock'].acquire()
try: try:
bot.db.execute("INSERT INTO topic (topic, added_by) VALUES(?,?)", bot.db.execute("INSERT INTO topic (topic, added_by) VALUES(?,?)",