1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-12-14 20:45:15 +01: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

@@ -1,3 +1,4 @@
import psutil
from discord import Message
from discord.ext.commands import Context, Bot
@@ -16,5 +17,9 @@ async def send_and_bin(bot: Bot, ctx: Context, msg=None, *, embed=None):
await msg
def start_time():
return psutil.Process().create_time()
def setup(bot):
bot.send_and_bin = send_and_bin