Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import discord
- from dotenv import load_dotenv
- # Replacing the token with random numbers to ensure security:
- DISCORD_TOKEN = '190265518975'
- token = os.getenv('DISCORD_TOKEN')
- client = discord.Client()
- @client.event
- async def on_ready():
- print(f'{client.user} has connected to Discord!')
- client.run(token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement