def setup(bot: BOTCBot): """Set the cog up.""" bot.add_cog(Debug(bot))
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:
def setup(bot: BOTCBot): """Set the cog up.""" bot.add_cog(Events(bot))
def setup(bot: BOTCBot): """Set the cog up.""" bot.add_cog(ScriptManagement(bot))
def setup(bot: BOTCBot): """Set the cog up.""" bot.add_cog(PreferenceManagement(bot))
def setup(bot: BOTCBot): """Set the cog up.""" bot.add_cog(Info(bot))