示例#1
1
def setup(bot):
    bot.add_cog(BotEvent(bot))
示例#2
0
def setup(bot):
    bot.add_cog(Hello(bot))
示例#3
0
def setup(bot):
    bot.add_cog(net_tools(bot))
示例#4
0
def setup(bot):
    bot.add_cog(Developer(bot))
示例#5
0
def setup(bot):
    bot.add_cog(staffcogs(bot))
示例#6
0
def setup(bot):
    bot.add_cog(CommandesOld(bot))
示例#7
0
def setup(bot):
    bot.add_cog(ServerSystem(bot))
def setup(bot):
    bot.add_cog(GemsPlay(bot))
    open("help/cogs.txt", "a").write("GemsPlay\n")
示例#9
0
def setup(bot):
    bot.add_cog(kuromina_notify(bot))
示例#10
0
 def setup(bot):
     check_folder()
     check_file()
     r = MakeGif(bot)
     bot.add_cog(r)
示例#11
0
def setup(bot):
    bot.add_cog(Commandes(bot))
    bot.add_cog(SecretCommandes(bot))
    open("core/cache/cogs.txt", "a").write("Commandes\n")
示例#12
0
def setup(bot):
    bot.add_cog(Helpme(bot))
示例#13
0
文件: help.py 项目: Daggy1234/dagbot
def setup(bot):
    bot.add_cog(help(bot))
示例#14
0
def setup(bot):
    bot.add_cog(Badwrd(bot))
示例#15
0
def setup(bot):
    bot.add_cog(Chitchat(bot))
示例#16
0
def setup(bot):
    bot.add_cog(ImageHandler(bot))
示例#17
0
imgflipData.isEnabled = config["IMGFLIP"]["Enable"] == "True"
imgflipData.username = config["IMGFLIP"]["Username"]
imgflipData.password = config["IMGFLIP"]["Password"]

# CLEVERBOT
cbenabled = config["CLEVERBOT"]["Enable"] == "True"

# TOKEN
token = config["BOTCONF"]["Token"]

# endregion

# region BOT INITIALIZATION
bot = commands.Bot(command_prefix="$")

bot.add_cog(Rand())
bot.add_cog(AdminOnly(bot))
bot.add_cog(File(bot))
bot.add_cog(RandomCommands(bot, cbenabled))
bot.add_cog(Answers())
bot.add_cog(Images())
bot.add_cog(memes.Memes(imgflipData))
bot.add_cog(Fun(bot))
bot.add_cog(Video(bot))
bot.add_cog(Audio(bot))
bot.add_cog(Reminders(bot))


@bot.event
async def on_ready():
    print("\033[2J\033[;H", end='')
示例#18
0
def setup(bot):
    bot.add_cog(Repeat(bot))
def setup(bot):
    bot.add_cog(GemsSuccess(bot))
    open("help/cogs.txt", "a").write("GemsSuccess\n")
示例#20
0
def setup(bot):
    bot.add_cog(math(bot))
示例#21
0
def setup(bot):
    bot.add_cog(BotCMD(bot))
示例#22
0
def setup(bot):
    bot.add_cog(FydoTranslate(bot))
示例#23
0
    token = os.getenv("DISCORD_TOKEN")

    if not os.getenv("DATABASE_URL"):
        raise RuntimeError("DATABASE_URL not set")

    url = os.getenv("DATABASE_URL")

    engine = create_engine(url)

    intents = discord.Intents.default()
    intents.members = True

    bot = discord.ext.commands.Bot('!',
                                   description=bot_description,
                                   intents=intents)
    bot.add_cog(SecretSanta(bot, engine))
    bot.add_cog(Contests(bot, engine))

    @bot.event
    async def on_ready():
        print(f'{bot_name} has escaped from his shell')

    @bot.command()
    async def source(ctx):
        await ctx.send(f"You can view my source at {bot_source}")

    @bot.command()
    async def authors(ctx):
        await ctx.send("I was written by: " + ", ".join(bot_authors))

    @bot.command()
示例#24
0
	def setup(bot):
		check_folder()
		check_file()
		r = CRSFX(bot)
		bot.add_cog(r)
示例#25
0
def setup(bot):
    bot.add_cog(Schlmeal(bot))
示例#26
0
def setup(bot):
    bot.add_cog(ReadySystem(bot))
示例#27
0
def setup(bot):
    bot.add_cog(Error(bot))
示例#28
0
def setup(bot):
    bot.add_cog(Music(bot))
示例#29
0
def setup(bot):
    bot.add_cog(Bye(bot))
示例#30
0
def setup(bot):
    bot.add_cog(fun(bot))