[V3 Audio] Rename Game to Activity (#1409)

* Rename `Game` to `Activity` for audio

Add on to pull #1397

* Update audio.py

Whoops, don't need this here

* Update audio.py

Now fixed
This commit is contained in:
Wyn 2018-03-08 20:55:03 -05:00 committed by Will
parent 6a715d87dd
commit b27e0f2d21

View File

@ -96,9 +96,9 @@ class Audio:
if event == 'TrackStartEvent' and status: if event == 'TrackStartEvent' and status:
if playing_servers > 1: if playing_servers > 1:
await self.bot.change_presence(game=discord.Game(name='music in {} servers'.format(playing_servers))) await self.bot.change_presence(activity=discord.Activity(name='music in {} servers'.format(playing_servers), type=discord.ActivityType.playing))
else: else:
await self.bot.change_presence(game=discord.Game(name=get_single_title, type=2)) await self.bot.change_presence(activity=discord.Activity(name=get_single_title, type=discord.ActivityType.listening))
if event == 'QueueEndEvent' and notify: if event == 'QueueEndEvent' and notify:
c = player.fetch('channel') c = player.fetch('channel')
@ -111,11 +111,11 @@ class Audio:
if event == 'QueueEndEvent' and status: if event == 'QueueEndEvent' and status:
await asyncio.sleep(1) await asyncio.sleep(1)
if playing_servers == 0: if playing_servers == 0:
await self.bot.change_presence(game=None) await self.bot.change_presence(activity=None)
if playing_servers == 1: if playing_servers == 1:
await self.bot.change_presence(game=discord.Game(name=get_single_title, type=2)) await self.bot.change_presence(activity=discord.Activity(name=get_single_title, type=discord.ActivityType.listening))
if playing_servers > 1: if playing_servers > 1:
await self.bot.change_presence(game=discord.Game(name='music in {} servers'.format(playing_servers))) await self.bot.change_presence(activity=discord.Activity(name='music in {} servers'.format(playing_servers), type=discord.ActivityType.playing))
@commands.group() @commands.group()
@checks.is_owner() @checks.is_owner()