Find voice_channel_for_user().
authorCMDR furrycat <elite@furrycat.net>
Thu, 3 Nov 2016 12:45:28 +0000 (12:45 +0000)
committerCMDR furrycat <elite@furrycat.net>
Thu, 3 Nov 2016 12:45:28 +0000 (12:45 +0000)
plugin/feeds/feeds.py

index 7f79b91..e0187b6 100644 (file)
@@ -431,7 +431,7 @@ class Feeds(DBConnection):
       create['id'] = id
       log.info('Created feed: {}'.format(create))
       yield from bot.say(message.channel, id)
-      yield from cat.purr(None, voice_channel_for_user(message.author), join = False)
+      yield from cat.purr(None, bot.voice_channel_for_user(message.author), join = False)
     else:
       log.info('Failed to create feed: {}'.format(create))
       yield from cat.yelp(message.channel)
@@ -455,7 +455,7 @@ class Feeds(DBConnection):
     if self.update_feed(client, id, **update):
       log.info('Edited feed {}: {}'.format(id, update))
       yield from bot.say(message.channel, ', '.join([self.feed_key(k) for k in update]))
-      yield from cat.purr(None, voice_channel_for_user(message.author), join = False)
+      yield from cat.purr(None, bot.voice_channel_for_user(message.author), join = False)
     else:
       log.info('Failed to edit feed {}: {}'.format(id, update))
       yield from cat.yelp(message.channel)