コード例 #1
1
ファイル: template.py プロジェクト: iamdhakrey/Yae_Sakura
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
ファイル: developer.py プロジェクト: pikaninja/dagbot
def setup(bot):
    bot.add_cog(Developer(bot))
コード例 #5
0
def setup(bot):
    bot.add_cog(staffcogs(bot))
コード例 #6
0
ファイル: commands.py プロジェクト: bastion-gaming/BaBot
def setup(bot):
    bot.add_cog(CommandesOld(bot))
コード例 #7
0
ファイル: serversystem.py プロジェクト: iceyman/G5-Bot
def setup(bot):
    bot.add_cog(ServerSystem(bot))
コード例 #8
0
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
ファイル: commands.py プロジェクト: bastion-gaming/BaBot
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
ファイル: dsbot.py プロジェクト: MatiasBoyer/bigmabot
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
ファイル: repeat.py プロジェクト: ensuta/discord-miho
def setup(bot):
    bot.add_cog(Repeat(bot))
コード例 #19
0
def setup(bot):
    bot.add_cog(GemsSuccess(bot))
    open("help/cogs.txt", "a").write("GemsSuccess\n")
コード例 #20
0
ファイル: math.py プロジェクト: dominik060/Kabca_discord_bot
def setup(bot):
    bot.add_cog(math(bot))
コード例 #21
0
ファイル: botCMD.py プロジェクト: iamdhakrey/Yae_Sakura
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
ファイル: schlmeal.py プロジェクト: Tim232/discord-miho
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
ファイル: bye.py プロジェクト: ensuta/discord-miho
def setup(bot):
    bot.add_cog(Bye(bot))
コード例 #30
0
def setup(bot):
    bot.add_cog(fun(bot))