Browse Source

List servers

master
DrBot7 4 years ago
parent
commit
205b2b039b
  1. 5
      bot.py

5
bot.py

@ -51,7 +51,10 @@ logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
async def on_ready(): async def on_ready():
# Marks bot as running # Marks bot as running
logging.info('I am running.') logging.info('I am running.')
servers = bot.guilds
logging.info("I am in the following " + str(len(servers)) + " servers:")
for server in servers:
print(server.name + " by " + server.owner.name + "#" + server.owner.discriminator)
@bot.event @bot.event
async def on_message(message): async def on_message(message):

Loading…
Cancel
Save