Esempio 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")}'
     )
Esempio n. 2
0
 async def _uperks(self, ctx):
     cm = CycleManager()
     await ctx.send(await cm.update_perks())
Esempio n. 3
0
 async def _uranks(self, ctx):
     cm = CycleManager()
     await cm.update_ranks()
     await ctx.send("Updated **ranks** in DB.")
Esempio n. 4
0
 async def _utokens(self, ctx):
     cm = CycleManager()
     await cm.update_tokens()
     await ctx.send("Updated **tokens** in DB.")
Esempio 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."
     )
Esempio n. 6
0
 async def _ubugs(self, ctx):
     cm = CycleManager()
     await cm.update_bugs()
     await ctx.send("Updated **bug reports** in DB.")
Esempio 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.")
Esempio 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.")
Esempio 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.")