Created
February 22, 2024 03:05
-
-
Save jeffreymeng/cbb4bc163af4e0342afd93ed7f5f6b91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
import os | |
import discord | |
from discord import Message | |
from dotenv import load_dotenv | |
intents = discord.Intents.default() | |
intents.message_content = True | |
client = discord.Client(intents=intents) | |
@client.event | |
async def on_ready(): | |
print(f'connected as {client.user}') | |
load_dotenv() | |
client.run(os.getenv("BOT_TOKEN")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment