示例#1
0
 async def reloadconfigs(self, ctx: commands.Context):
     """Reloads all server configs from disk"""
     async with ctx.typing():
         Configuration.load_master()
         await Configuration.on_ready(self.bot)
         self.bot.cogs["Moderation"].load_bad_names()
     await ctx.send("Configs reloaded")
示例#2
0
 async def reloadconfigs(self, ctx:commands.Context):
     """Reloads all server configs from disk"""
     async with ctx.typing():
         Configuration.load_master()
         await Configuration.initialize(self.bot)
     await ctx.send("Configs reloaded")
示例#3
0
文件: Admin.py 项目: ginkoid/bargebot
 async def reloadconfigs(self, ctx:commands.Context):
     async with ctx.typing():
         Configuration.load_master()
         await Configuration.initialize(self.bot)
     await ctx.send("Configs reloaded")