Ejemplo n.º 1
0
def setup(bot: BOTCBot):
    """Set the cog up."""
    bot.add_cog(Debug(bot))
Ejemplo n.º 2
0
config = ConfigParser()
config.read("config.ini")

# Define the bot
try:
    bot = BOTCBot(
        bot_name,
        int(config[bot_name]["server"]),
        int(config[bot_name]["channel"]),
        int(config[bot_name]["storytellerid"]),
        int(config[bot_name]["playerid"]),
        int(config[bot_name]["inactiveid"]),
        int(config[bot_name]["playtestid"]),
        int(config[bot_name]["observerid"]),
        config=config[bot_name],
        command_prefix=tuple([x for x in config[bot_name]["prefixes"]]),
        description=
        ("An unofficial Discord bot for helping run games of Blood on the "
         "Clocktower. \nThis bot is in beta and is not associated with BOTC or "
         "TPI. Please be forgiving of bugs.\n\nI'm Riley - message me "
         "(nihilistkitten#6937) with questions, feedback, bug reports, or just "
         "to talk!"),
        case_insensitive=True,
        owner_id=149969652141785088,
    )
except KeyError as e:
    if str(e) == f"'{bot_name}'":
        print(f'Bot "{bot_name}" not found.')
        print("Shutting down.")
        sysexit()
    else:
Ejemplo n.º 3
0
def setup(bot: BOTCBot):
    """Set the cog up."""
    bot.add_cog(Events(bot))
Ejemplo n.º 4
0
def setup(bot: BOTCBot):
    """Set the cog up."""
    bot.add_cog(ScriptManagement(bot))
Ejemplo n.º 5
0
def setup(bot: BOTCBot):
    """Set the cog up."""
    bot.add_cog(PreferenceManagement(bot))
Ejemplo n.º 6
0
def setup(bot: BOTCBot):
    """Set the cog up."""
    bot.add_cog(Info(bot))