2020-12-19 00:11:01 -06:00
|
|
|
import discord
|
2019-04-08 21:30:51 -05:00
|
|
|
from discord.ext.commands import Bot
|
|
|
|
|
2020-02-23 16:15:28 -06:00
|
|
|
token = open("../token.txt")
|
2020-02-23 16:09:57 -06:00
|
|
|
|
2020-12-06 00:27:37 -06:00
|
|
|
cogs = ["Modules.TMC.autoReply.Join", "Modules.TMC.autoReply.Leave",
|
2021-01-22 16:16:25 -06:00
|
|
|
"Modules.TMC.McRoll", "Modules.TMC.ParseForIssues", "Modules.TMC.doym"]
|
2019-07-31 23:55:19 -05:00
|
|
|
|
2019-04-08 21:30:51 -05:00
|
|
|
prefix = 'o!'
|
2020-12-19 00:11:01 -06:00
|
|
|
intents = discord.Intents().all()
|
2019-04-19 23:48:02 -05:00
|
|
|
|
2019-12-19 22:01:14 -06:00
|
|
|
"""
|
2019-04-19 23:48:02 -05:00
|
|
|
tokens = open("tokens.txt", 'r')
|
|
|
|
tokens = tokens.readlines()
|
|
|
|
bot_running = input("Would you like to run the test bot[T] or the default[D] :: ")
|
|
|
|
if bot_running == 'T':
|
|
|
|
token = tokens[0].rstrip()
|
|
|
|
elif bot_running == 'D':
|
|
|
|
token = tokens[1].rstrip()
|
|
|
|
tokens = ''
|
2019-12-19 22:01:14 -06:00
|
|
|
"""
|
2020-12-19 00:11:01 -06:00
|
|
|
client = Bot(command_prefix=prefix, intents=intents)
|
2019-04-08 21:30:51 -05:00
|
|
|
client.remove_command("help")
|
|
|
|
|
2019-08-01 16:59:54 -05:00
|
|
|
|
2019-04-08 21:30:51 -05:00
|
|
|
@client.event
|
|
|
|
async def on_ready():
|
|
|
|
print('Logged in as:')
|
|
|
|
print('{0.user}'.format(client))
|
2019-09-09 21:29:08 -05:00
|
|
|
|
2019-04-08 21:30:51 -05:00
|
|
|
for cog in cogs:
|
|
|
|
client.load_extension(cog)
|
|
|
|
|
2020-02-23 22:26:50 -06:00
|
|
|
client.run(token.read())
|