Merge branch 'dev' into 'master'

show a custom activity with prefix and help command

See merge request aaron-riedel/shbot!17
This commit is contained in:
Aaron Riedel 2022-04-16 01:53:42 +00:00
commit 2b2ddf6cbd

3
bot.py
View file

@ -72,6 +72,9 @@ async def on_command_error(ctx, error):
@bot.event @bot.event
async def on_ready(): async def on_ready():
print("Bot ready on Version %s..." % discord.__version__) print("Bot ready on Version %s..." % discord.__version__)
activity = discord.Activity(name='%shelp' % prefix, type=discord.ActivityType.listening)
#activity = discord.Game('%shelp for Help' % prefix)
await bot.change_presence(status=discord.Status.online, activity=activity)
#@bot.event #@bot.event
#async def on_message(message): #async def on_message(message):