From 7d597dadecd6263d9595f0636596fa94a8ff0428 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sun, 2 Jul 2023 20:40:39 +0200 Subject: [PATCH] Add client activity --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 6a43903..745ea08 100644 --- a/bot.py +++ b/bot.py @@ -7,7 +7,7 @@ from sqlalchemy.orm import Session from models import Guild, Channel, Base import discord -from discord import app_commands +from discord import app_commands, CustomActivity from discord.app_commands import Choice from discord.ext import tasks @@ -151,4 +151,6 @@ async def purge(interaction: discord.Interaction, days: int): await interaction.response.send_message(content='✅ Messages deleted.', delete_after=20) +client.activity = CustomActivity(name="Cleaning up your sh*t") + client.run(token=os.getenv("BOT_TOKEN"), log_handler=None) \ No newline at end of file