add list of connected servers on startup
This commit is contained in:
3
main.py
3
main.py
@@ -32,6 +32,9 @@ with open("bot.conf", 'r') as f:
|
||||
async def on_ready():
|
||||
print('Logged in as {0.user}'.format(client))
|
||||
|
||||
for guild in client.guilds:
|
||||
print(f'Connect to Server {guild.name} (id: {guild.id})')
|
||||
|
||||
@client.event
|
||||
async def on_message(message):
|
||||
if message.author == client.user:
|
||||
|
||||
Reference in New Issue
Block a user