Referred bot back to self.bot
This commit is contained in:
parent
b237985a75
commit
471a5d1ec6
|
@ -17,10 +17,10 @@ class Twitch:
|
||||||
cursor.execute('select twitch_url from twitch where user_id="{}"'.format(member.id))
|
cursor.execute('select twitch_url from twitch where user_id="{}"'.format(member.id))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result is not None:
|
if result is not None:
|
||||||
await bot.say("{}'s twitch URL is {}'".format(member.name,result['twitch_url']))
|
await self.bot.say("{}'s twitch URL is {}'".format(member.name,result['twitch_url']))
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
else:
|
else:
|
||||||
await bot.say("{} has not savede their twitch URL yet!")
|
await self.bot.say("{} has not savede their twitch URL yet!")
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
|
|
||||||
@twitch.command(name='add',pass_context=True,no_pm=True)
|
@twitch.command(name='add',pass_context=True,no_pm=True)
|
||||||
|
|
Loading…
Reference in a new issue