Skip to content

Instantly share code, notes, and snippets.

@Kakarot-2000
Created February 26, 2021 09:14
Show Gist options
  • Save Kakarot-2000/7253192310f3fdd78014e6f42cd7f979 to your computer and use it in GitHub Desktop.
Save Kakarot-2000/7253192310f3fdd78014e6f42cd7f979 to your computer and use it in GitHub Desktop.
load_dotenv()
# Get the API token from the .env file.
DISCORD_TOKEN = os.getenv("discord_token")
intents = discord.Intents().all()
client = discord.Client(intents=intents)
bot = commands.Bot(command_prefix='!',intents=intents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment