roundaboutluke / porygon

Porygon is a reimagining of Discoropole written in go
9 stars 6 forks source link

Emotes - add create/list/delete slash commands #22

Closed lenisko closed 5 months ago

lenisko commented 6 months ago

Add ability to create, list and delete (only created by bot) emotes using slash commands (admin only)

TMHBOFH commented 5 months ago

please also update the Dockerfile

COPY default.toml /porygon/
+ COPY /emojis /porygon/emojis
COPY /templates /porygon/templates

thanks

lenisko commented 5 months ago

@TMHBOFH I'm not an Docker expert, but you don't want to put those files in image but bind them. Check compose example.

TMHBOFH commented 5 months ago

@lenisko I know what you mean, but would it run if there wasn't even an empty emojis folder?

As I understand it, at least the empty emojis folder schuld be in the image or?

lenisko commented 5 months ago

@TMHBOFH it will start just fine, those are required once you want to run create-emotes command.

lenisko commented 5 months ago

Thanks :)

Yeah, fairly easy to create a mapping of emote name <> config and return it in message. Good for someone else!