Ejemplo n.º 1
0
 async def _dtokens(self, ctx):
     cm = CycleManager()
     success, error = await cm.distribute_tokens()
     await ctx.send(
         f'Passed:\n{discord.utils.escape_markdown(success if success is not None else "0")}'
     )
     await ctx.send(
         f'Failed:\n{discord.utils.escape_markdown(error if error is not None else "0")}'
     )
Ejemplo n.º 2
0
 async def _uperks(self, ctx):
     cm = CycleManager()
     await ctx.send(await cm.update_perks())
Ejemplo n.º 3
0
 async def _uranks(self, ctx):
     cm = CycleManager()
     await cm.update_ranks()
     await ctx.send("Updated **ranks** in DB.")
Ejemplo n.º 4
0
 async def _utokens(self, ctx):
     cm = CycleManager()
     await cm.update_tokens()
     await ctx.send("Updated **tokens** in DB.")
Ejemplo n.º 5
0
 async def _utotal(self, ctx):
     cm = CycleManager()
     await cm.update_total()
     await ctx.send(
         "Updated **total games**, **total seconds** and **total bugs** in DB."
     )
Ejemplo n.º 6
0
 async def _ubugs(self, ctx):
     cm = CycleManager()
     await cm.update_bugs()
     await ctx.send("Updated **bug reports** in DB.")
Ejemplo n.º 7
0
 async def _ugames(self, ctx):
     cm = CycleManager()
     await cm.update_games_and_seconds()
     await ctx.send("Updated **games** and **seconds** in DB.")
Ejemplo n.º 8
0
 async def _ucycle(self, ctx):
     cm = CycleManager()
     # TODO: Call archive_cycle() here?
     await cm.new_cycle()
     await ctx.send("**New cycle** set in DB.")
Ejemplo n.º 9
0
 async def _uarchive(self, ctx, version: str):
     cm = CycleManager()
     await cm.archive_cycle(version)
     await ctx.send("**Archived** the past cycle in DB.")