ItsDrike / CommandBot

Discord Bot which can handle most administrative tasks for servers.
Other
0 stars 0 forks source link

Let staff members create custom embed messages #10

Closed ItsDrike closed 4 years ago

ItsDrike commented 4 years ago

Closes #9

Created embeds cog, that adds the ability to create embeds for MODERATION_ROLES.

The commands added:

This will make it easier to create longer and nicer messages for staff members. This feature is only available for MODERATION_ROLES because regular staff members shouldn't need to use embeds.

The final result can look something like this: image

ItsDrike commented 4 years ago

Its fine, but logging should be implemented to send a log (INFO level) when embed message is sent)

ItsDrike commented 4 years ago

It would be better to not repeat those lines over and over in most of the command functions:

embed = await self.get_embed(ctx)

if embed is False:
    return

But instead, use a decorator.

This should also make the get_embed no longer necessary

ItsDrike commented 4 years ago

Force push was done because of wrong commit message syntax, the message was too long (badly resolved \n symbol

ItsDrike commented 4 years ago

There should be an option to get users icon directly by mentioning, instead of giving the URL. Sometimes URL is handy so there should be another function that will make this aviable

ItsDrike commented 4 years ago

It will be better to keep this in 1 command as it will really only be doing 1 thing with somewhat different inputs. Resolved in c60ea1d