Skip to content

Commit 5724218

Browse files
committed
Replaced config status in bot.py to activity_type and activity_message
1 parent fab3f7b commit 5724218

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,12 @@ async def on_connect(self):
175175
print(line)
176176
print(Fore.CYAN + 'Connected to gateway.')
177177
await self.config.refresh()
178-
status = self.config.get('status')
179-
if status:
180-
await self.change_presence(activity=discord.Game(status))
178+
179+
activity_type = self.config.get('activity_type')
180+
message = self.config.get('activity_message')
181+
if activity_type and message:
182+
activity = discord.Activity(type=activity_type, name=message)
183+
await self.change_presence(activity=activity)
181184

182185
async def on_ready(self):
183186
"""Bot startup, sets uptime."""

0 commit comments

Comments
 (0)