Share your repls and programming experiences

← Back to all posts
Looooooooooooooooo999
RaikuSChanCodes (0)

#bot.py
import os
import discord
from dotenv import load_dotenv

load_dotenv ()
TOKEN = os.gentenv('DISCORD_TOKEN')
GUILD = os.gentenv('DISCORD_TOKEN')

@client.event
async def on_ready():
for guild in client.guilds:
if guild.name == GUILD:
break

print(
f'{client.user} is connected to the following'

f'{guild.name} (id: {guild.id})')

client.run(TOKEN)

Comments
hotnewtop