boomba-bot / boomba

An Elixir Discord bot for streamers
MIT License
2 stars 0 forks source link

feat: welcome messages #11

Open xunafay opened 3 years ago

xunafay commented 3 years ago

Post message to a specified channel when:

Templating

message content is specified with a template where {{user}} is filled in with the user tag examples: {{user}} has left the party -> @SomeUser#0001 has left the party looks like {{user}} is ready to party -> looks like @SomeUser#0001 is ready to party

if no template is specified a default is to be used: join: {{user}} has joined the server leave: {{user}} has left the server ban: {{user}} was banned by {{banner}}

Coding

Alchemy events needed

on_user_ban, on_member_join, on_member_leave

https://hexdocs.pm/discord_alchemy/0.6.9/Alchemy.Events.html#content

events should be added like the following https://github.com/boomba-bot/boomba/blob/00bb2da942a56a08e2db70f1f0c7ced448e53571/lib/events.ex#L1-L16

xunafay commented 3 years ago