Browse Source

Updated token system

master
elliot 3 years ago
parent
commit
fbcd9869a0
  1. 4
      bot.py

4
bot.py

@ -5,7 +5,6 @@ import logging
import sys import sys
from discord.ext import commands, tasks from discord.ext import commands, tasks
from discord.ext.commands import has_permissions, MissingPermissions from discord.ext.commands import has_permissions, MissingPermissions
from dotenv import load_dotenv
import aiohttp import aiohttp
import mimetypes import mimetypes
import requests import requests
@ -15,8 +14,7 @@ import requests
bot = commands.Bot(command_prefix=".", intents=discord.Intents.default(), bot = commands.Bot(command_prefix=".", intents=discord.Intents.default(),
case_insensitive=True) case_insensitive=True)
load_dotenv()
token = os.getenv('token')
token = os.getenv('discord-bot-token')
logging.basicConfig(filename='console.log', logging.basicConfig(filename='console.log',
level=logging.INFO, level=logging.INFO,

Loading…
Cancel
Save