1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-28 02:25:24 +02:00

:refactor: + change joke format, use psutil for uptime

This commit is contained in:
ddorn
2020-04-30 11:44:17 +02:00
parent 34fc5e3c60
commit 3bfad6e0a9
6 changed files with 57 additions and 46 deletions

View File

@ -48,7 +48,7 @@ class MiscCog(Cog, name="Divers"):
async def joke_cmd(self, ctx):
await ctx.message.delete()
with open(File.JOKES) as f:
jokes = f.read().split("\n\n\n")
jokes = f.read().split("---")
msg = random.choice(jokes)
message: discord.Message = await ctx.send(msg)