Ejemplo n.º 1
0
    asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

dev = False
if os.environ.get("FIREENV", "production") == "dev":
    dev = True

intents = discord.Intents()
intents.value = 1607

bot = Fire(
    command_prefix=get_pre,
    status=discord.Status.dnd,
    activity=discord.Game("with fire | inv.wtf"),
    intents=intents,
    case_insensitive=True,
    owner_id=287698408855044097,
    max_messages=2500,
    chunk_guilds_at_startup=False,
    member_cache_flags=discord.MemberCacheFlags.none(),
    dev=dev,
    allowed_mentions=discord.AllowedMentions(
        everyone=False, users=False, roles=False)
)


extensions = [
    "cogs.koding",
    "cogs.ksoft",
    "cogs.moderation",
    "cogs.premium",
    "cogs.settings",
    "cogs.utils",
Ejemplo n.º 2
0
    return commands.when_mentioned_or(prefix, 'fire ', 'Fire ')(bot, message)


if os.name != 'nt':
    import uvloop
    uvloop.install()
    asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

dev = False
if os.environ.get("FIREENV", "production") == "dev":
    dev = True

bot = Fire(command_prefix=get_pre,
           status=discord.Status.online,
           activity=discord.Game(name="with fire | inv.wtf"),
           case_insensitive=True,
           owner_id=287698408855044097,
           max_messages=2500,
           fetch_offline_members=False,
           dev=dev)

extensions = [
    "cogs.assist",
    "cogs.imagegen",
    "cogs.koding",
    "cogs.ksoft",
    "cogs.moderation",

    # Hypixel cog is disabled until I get around to rewriting it
    #    "cogs.pickle",
    "cogs.premium",
    "cogs.settings",
Ejemplo n.º 3
0
Archivo: bot.py Proyecto: iv4ndev/Fire
        if bot.dev:
            return commands.when_mentioned_or('$', 'dev ', 'Dev ')(bot, message)
        return commands.when_mentioned_or('$', 'fire ', 'Fire ')(bot, message)
    prefix = bot.configs[message.guild.id].get('main.prefix')
    if bot.dev:
            return commands.when_mentioned_or(prefix, 'dev ', 'Dev ')(bot, message)
    return commands.when_mentioned_or(prefix, 'fire ', 'Fire ')(bot, message)

dev = False
if os.environ.get("FIREENV", "production") == "dev":
    dev = True
bot = Fire(
    command_prefix=get_pre,
    status=discord.Status.idle,
    activity=discord.Game(name="with fire | inv.wtf"),
    case_insensitive=True,
    owner_id=287698408855044097,
    max_messages=8000,
    dev=dev
)


extensions = [
    "cogs.misc",
    "cogs.pickle",
    "cogs.ksoft",
    "cogs.skier",
    "cogs.utils",
    "cogs.help",
    "cogs.dbl",
    "cogs.youtube",