Closed ItsDrike closed 4 years ago
Its fine, but logging should be implemented to send a log (INFO level) when embed message is sent)
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
Force push was done because of wrong commit message syntax, the message was too long (badly resolved \n symbol
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
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
Closes #9
Created embeds cog, that adds the ability to create embeds for
MODERATION_ROLES
.The commands added:
!embedbuild
(Enter the embed building mode)!embedquit
(Leave the embed building mode)!embedshow
(Preview the embed before sending it)!embedsend <channel>
(Send the finished embed to specified channel)!embed
(Group of embed building commands)!embed title <title>
(Set embeds title)!embed description <description>
(Set embeds description)!embed footer <footer>
(Set footer)!embed image <url>
(Add image to embed)!embed color <color>
(Set color of the embed)!embed author <name>
(Set name of author)!embed authorurl <url>
(Set authors url)!embed authoricon <url>
(Set authors icon)!embed createfield <title>
(Create new title) [Will show user the ID]!embed fielddescription <ID> <description>
(Set fields description)!embed fieldtitle <ID> <title>
(Set fields title)!embed fieldinline <ID> <bool>
(Should the field be inline?)!embed removefield <ID>
(Remove specified field)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: