示例#1
0
def setup(bot: Bot):
    x = General_Commands(bot)
    bot.add_cog(x)
示例#2
0
from glob import glob
from discord import Game
from Cogs.Utils.custom_bot import Bot


bot = Bot(
	command_prefix='/',
	pm_help=True
)


# List all files in the Cogs directory that end in .py
#extensions = [i.split('/')[-1][:-3].replace('\\', '.').replace('/', '.') for i in glob("./Cogs/*.py")]
extensions = []
for filepath in glob("./Cogs/*.py"):
	file = filepath.replace('\\', '/').split('/')[-1]
	filename = 'Cogs.' + file[:-3]
	extensions.append(filename)


@bot.event
async def on_ready():
	print("Booted and ready for action")
	print(" :: {0.user}".format(bot))
	print(" :: {0.user.id}".format(bot))
	print()

	for ext in extensions:
		try:
			bot.load_extension(ext)
			print(" - Loaded extension", ext)
示例#3
0
def setup(bot: Bot):
    x = Last_Tweet(bot)
    bot.add_cog(x)
示例#4
0
def setup(bot: Bot):
    x = Admin_Commands(bot)
    bot.add_cog(x)
示例#5
0
def setup(bot: Bot):
    x = Join_Events(bot)
    bot.add_cog(x)
示例#6
0
def setup(bot: Bot):
    x = Role_Management(bot)
    bot.add_cog(x)
示例#7
0
def setup(bot:Bot):
	x = Error_Events(bot)
	bot.add_cog(x)