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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user