mirror of https://github.com/hak5/scuzzy.git
Features: Make cat work for all roles.
parent
5d3d3c41b3
commit
1d970de88a
|
@ -11,9 +11,14 @@ import (
|
|||
)
|
||||
|
||||
func (f *Features) handleCat(s *discordgo.Session, m *discordgo.MessageCreate) error {
|
||||
if f.Auth.CheckAdminRole(m.Member) {
|
||||
_, _ = s.ChannelMessageSend(m.ChannelID, "https://giphy.com/gifs/cat-cute-no-rCxogJBzaeZuU")
|
||||
_ = s.ChannelMessageDelete(m.ChannelID, m.ID)
|
||||
_, err := s.ChannelMessageSend(m.ChannelID, "https://giphy.com/gifs/cat-cute-no-rCxogJBzaeZuU")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = s.ChannelMessageDelete(m.ChannelID, m.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue