use assure_call for trakt.py and lastfm.py

This commit is contained in:
jesopo 2018-08-30 18:06:46 +01:00
parent 656cb8153a
commit d52037a6a3
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ class Module(object):
self.bot = bot self.bot = bot
bot.events.on("postboot").on("configure").on( bot.events.on("postboot").on("configure").on(
"set").call(setting="lastfm", "set").assure_call(setting="lastfm",
help="Set username on last.fm") help="Set username on last.fm")
bot.events.on("received").on("command").on("np", bot.events.on("received").on("command").on("np",

View file

@ -14,7 +14,7 @@ class Module(object):
"on trakt.tv", usage="[username]") "on trakt.tv", usage="[username]")
bot.events.on("postboot").on("configure").on("set" bot.events.on("postboot").on("configure").on("set"
).call(setting="trakt", help="Set username on trakt.tv") ).assure_call(setting="trakt", help="Set username on trakt.tv")
def now_watching(self, event): def now_watching(self, event):
if event["args"]: if event["args"]: