changed order of wednesday command
This commit is contained in:
parent
9a34a3c2ee
commit
7cf02b2fd4
@ -78,17 +78,17 @@ func (app *application) sendTuesday(s *discordgo.Session, m *discordgo.MessageCr
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (app *application) sendWednesday(s *discordgo.Session, m *discordgo.MessageCreate) {
|
func (app *application) sendWednesday(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||||
if time.Now().Weekday().String() != "Wednesday" {
|
_, month, day := time.Now().Date()
|
||||||
_, err := s.ChannelMessageSend(m.ChannelID, "This command only works on wednesdays")
|
if month.String() == "May" && day == 19 {
|
||||||
|
_, err := s.ChannelMessageSend(m.ChannelID, "https://www.youtube.com/watch?v=z21HOwUk5oM")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.errorLog.Print(err)
|
app.errorLog.Print(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, month, day := time.Now().Date()
|
if time.Now().Weekday().String() != "Wednesday" {
|
||||||
if month.String() == "May" && day == 19 {
|
_, err := s.ChannelMessageSend(m.ChannelID, "This command only works on wednesdays")
|
||||||
_, err := s.ChannelMessageSend(m.ChannelID, "https://www.youtube.com/watch?v=z21HOwUk5oM")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.errorLog.Print(err)
|
app.errorLog.Print(err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user