Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{/*Check if the message they sent was ok (added more case matching stuff lol) */}}
- {{if or (eq .Message.Content "ok") (eq .Message.Content "OK") (eq .Message.Content "Ok") (eq .Message.Content "oK")}}
- {{/*If they entered ok and they have a msg1, delete the message from the channel and remove their db storage */}}
- {{$x := dbGet .User.ID "msg1"}}
- {{if $x}}
- {{deleteMessage CHANNEL_ID_HERE $x.Value 0}}
- {{dbDel .User.ID "msg1"}}
- {{end}}
- {{/*Same with msg2 */}}
- {{$y := dbGet .User.ID "msg2"}}
- {{if $y}}
- {{deleteMessage CHANNEL_ID_HERE $y.Value 0}}
- {{dbDel .User.ID "msg2"}}
- {{end}}
- {{/*Remove the role so the channel disappears */}}
- {{removeRoleID ROLE_ID_HERE}}
- {{end}}
- {{deleteMessage CHANNEL_ID_HERE .Message.ID 0}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement