mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 09:15:40 +00:00
Add "Robocop has started! x has y members!"
This commit is contained in:
parent
bd4fa015ca
commit
af446f4cfd
|
@ -74,6 +74,14 @@ async def on_ready():
|
||||||
log.info(f'\nLogged in as: {bot.user.name} - '
|
log.info(f'\nLogged in as: {bot.user.name} - '
|
||||||
f'{bot.user.id}\ndpy version: {discord.__version__}\n')
|
f'{bot.user.id}\ndpy version: {discord.__version__}\n')
|
||||||
game_name = f"{config.prefixes[0]}help"
|
game_name = f"{config.prefixes[0]}help"
|
||||||
|
|
||||||
|
# Send "Robocop has started! x has y members!"
|
||||||
|
guild = discord.utils.get(bot.guilds, id=config.guild_whitelist[0])
|
||||||
|
log_channel = guild.get_channel(config.log_channel)
|
||||||
|
msg = f"{bot.user.name} has started! "\
|
||||||
|
f"{guild.name} has {guild.member_count} members!"
|
||||||
|
await log_channel.send(msg)
|
||||||
|
|
||||||
await bot.change_presence(activity=discord.Game(name=game_name))
|
await bot.change_presence(activity=discord.Game(name=game_name))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@ embed_desc = "Robocop-NG is developed by [Ave](https://github.com/aveao)"\
|
||||||
# Minimum account age required to join the discord
|
# Minimum account age required to join the discord
|
||||||
min_age = datetime.timedelta(minutes=15)
|
min_age = datetime.timedelta(minutes=15)
|
||||||
|
|
||||||
|
# IMPORTANT: It's assumed that the first guild here
|
||||||
|
# is the one containing log_channel
|
||||||
guild_whitelist = [
|
guild_whitelist = [
|
||||||
526372255052201993, # NotSwitched discord
|
526372255052201993, # NotSwitched discord
|
||||||
269333940928512010 # ReSwitched discord
|
269333940928512010 # ReSwitched discord
|
||||||
|
|
Loading…
Reference in a new issue