Esempio n. 1
0
from bot import client, chat_bot, config

chat_bot.connect()
client.run(config["BOT_TOKEN"])
Esempio n. 2
0
from bot import client
import os

dir_path = os.path.dirname(os.path.realpath(__file__))
client.run("<TOKEN>")
Esempio n. 3
0
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)
Esempio n. 4
0
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 )
Esempio n. 5
0
from bot import client
from env import discord_token

if __name__ == '__main__':
    client.run(discord_token)
Esempio n. 6
0
from bot import client

if __name__ == '__main__':
    client.run()
Esempio n. 7
0
from bot import client, config

client.run(config["token"])