bugfixes regarding logging, api and db working; small fixes in all of the cogs; moved all the configurable information to the config.py
This commit is contained in:
24
cogs/help.py
24
cogs/help.py
@@ -1,27 +1,19 @@
|
||||
import discord
|
||||
import logging
|
||||
from discord.ext import commands
|
||||
import config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class HelpCog(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
|
||||
@commands.command(name="help")
|
||||
async def help(self, ctx):
|
||||
help_text = """
|
||||
комманды:
|
||||
await ctx.send(config.HELP_TEXT)
|
||||
logger.debug("Help requested by %s", ctx.author.name)
|
||||
|
||||
```
|
||||
uptime : сколько времени прошло с запуска бота
|
||||
funchosarand <id> : рандомная пикча из фунчозы либо по айдишнику в базе
|
||||
funchosainfo : фунчоза.статы
|
||||
kitty : рандомная пикча кошечки из [thecatapi](https://thecatapi.com/)
|
||||
```
|
||||
|
||||
префикс: `!`
|
||||
в лс отпишите по предложениям че в бота докинуть
|
||||
"""
|
||||
|
||||
await ctx.send(help_text)
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(HelpCog(bot))
|
||||
Reference in New Issue
Block a user