lukaqueres / Frequency

Discord bot with features including: planning, administration, and music playing.
http://theplanbot.com
GNU Affero General Public License v3.0
2 stars 0 forks source link

[ BOT ] Exception handler Cog #35

Open lukaqueres opened 1 year ago

lukaqueres commented 1 year ago

Most likely will be made with these gist as a reference https://gist.github.com/EvieePy/7822af90858ef65012ea500bcecf1612.

This issue is mostly about minor improvements to all files as well as some changes to errors.py - exception handler cog.

There is need for command reading json file for params. json system may be modified as well.

on_ready function in PIBot class can be improved, with activities set fix along the way.

It is time to fix most things that are not working in right way.

lukaqueres commented 1 year ago

Update, using https://github.com/PaulMarisOUMary/Discord-Bot/blob/main/cogs/errors.py now

lukaqueres commented 1 year ago

And this ->https://github.com/Rapptz/discord.py/blob/edfacb36cfc61956d5a9613e970cfcd455494204/discord/app_commands/errors.py#L256 may help

lukaqueres commented 1 year ago

Along with this update, there will be many minor workflow changes.

Docks: https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#checks

lukaqueres commented 1 year ago

Update in errors.py:

It can be changed, maybe it will be new parameter in configuration files, so it can be changed easly.

lukaqueres commented 1 year ago

Added log functions class to client, along with configuration class for fetching json data.