from bot import client, chat_bot, config chat_bot.connect() client.run(config["BOT_TOKEN"])
from bot import client import os dir_path = os.path.dirname(os.path.realpath(__file__)) client.run("<TOKEN>")
import os import cmd from bot import client from dotenv import load_dotenv # Get environment variable file load_dotenv() TOKEN = os.getenv("DISCORD_TOKEN") GUILD = os.getenv("DISCORD_GUILD") client.run(TOKEN)
import os from bot import client DISCORD_BOT_TOKEN = os.getenv( "DISCORD_BOT_TOKEN" ) if not DISCORD_BOT_TOKEN: raise Exception( "env variable DISCORD_BOT_TOKEN required" ) if __name__ == "__main__": client.run( DISCORD_BOT_TOKEN )
from bot import client from env import discord_token if __name__ == '__main__': client.run(discord_token)
from bot import client if __name__ == '__main__': client.run()
from bot import client, config client.run(config["token"])