some code changes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
import disnake
|
||||
import psutil
|
||||
from disnake.ext import commands
|
||||
|
||||
from lib.Comands import determine_prefix, determine_time
|
||||
from lib import determine_prefix, determine_time
|
||||
from lib import logger
|
||||
|
||||
|
||||
class Bot_info(commands.Cog, name='Bot Info'):
|
||||
@@ -14,9 +14,10 @@ class Bot_info(commands.Cog, name='Bot Info'):
|
||||
|
||||
@commands.Cog.listener() # this is a decorator for events/listeners
|
||||
async def on_ready(self):
|
||||
logging.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||
logger.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||
|
||||
@commands.slash_command(name="info_bot") # this is for making a command
|
||||
@commands.slash_command(name="info_bot",
|
||||
description='Shows general info about bot') # this is for making a command
|
||||
async def info_bot(self, inter):
|
||||
_pid = os.getpid()
|
||||
_process = psutil.Process(_pid)
|
||||
|
||||
Reference in New Issue
Block a user