msg:="<@77516941199159296> kun je die gif verwijderen van die pickup truck die naar de camera rijdt want bij mij zorg ie voor dat discord opnieuw opstart. ik weet niet of iemand anders dit heeft maar als iemand weet hoe dit komt en een andere oplossing weet hoor ik het graag."
message:=fmt.Sprintf("%s mentioned the forbidden word '%s'. They broke a streak of %s...\nYou better watch out, I am always watching %s",user,word.Word,format,eyesEmoji)
_,err=s.ChannelMessageSend(m.ChannelID,message)
iferr!=nil{
app.errorLog.Print(err)
return
}
break
}
}
}
funcformatTimeCheck(lasttime.Time)string{
now:=time.Now()
sinceLast:=now.Sub(last)
varrealSecondsuint64=uint64(sinceLast.Seconds())
varseconds,minutes,hours,daysuint64
realBackup:=realSeconds
days=realSeconds/(24*3600)
realSeconds-=days*(24*3600)
hours=realSeconds/3600
realSeconds-=hours*3600
minutes=realSeconds/60
realSeconds-=minutes*60
seconds=realSeconds
ifrealBackup<60{
ifseconds==1{
returnfmt.Sprintf("%d second",seconds)
}
returnfmt.Sprintf("%d seconds",seconds)
}elseifrealBackup>60&&realBackup<3600{
ifseconds==1&&minutes==1{
returnfmt.Sprintf("%d minute and %d second",minutes,seconds)
}elseifminutes==1&&seconds!=1{
returnfmt.Sprintf("%d minute and %d seconds",minutes,seconds)
}elseifminutes!=1&&seconds==1{
returnfmt.Sprintf("%d minutes and %d second",minutes,seconds)
}
returnfmt.Sprintf("%d minutes and %d seconds",minutes,seconds)
}elseifrealBackup>60&&realBackup<(24*3600){
ifhours==1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d hour, %d minute and %d second",hours,minutes,seconds)
}elseifhours==1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d hour, %d minute and %d seconds",hours,minutes,seconds)
}elseifhours==1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d hour, %d minutes and %d second",hours,minutes,seconds)
}elseifhours==1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d hour, %d minutes and %d seconds",hours,minutes,seconds)
}elseifhours!=1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d hours, %d minute and %d second",hours,minutes,seconds)
}elseifhours!=1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d hours, %d minute and %d seconds",hours,minutes,seconds)
}elseifhours!=1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d hours, %d minutes and %d second",hours,minutes,seconds)
}elseifhours!=1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d hours, %d minutes and %d seconds",hours,minutes,seconds)
}
returnfmt.Sprintf("%d hours, %d minutes and %d seconds",hours,minutes,seconds)
}elseifrealBackup>(24*3600){
ifdays!=1&&hours!=1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d days, %d hours, %d minutes and %d seconds",days,hours,minutes,seconds)
}elseifdays!=1&&hours!=1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d days, %d hours, %d minutes and %d second",days,hours,minutes,seconds)
}elseifdays!=1&&hours!=1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d days, %d hours, %d minute and %d seconds",days,hours,minutes,seconds)
}elseifdays!=1&&hours!=1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d days, %d hours, %d minute and %d second",days,hours,minutes,seconds)
}elseifdays!=1&&hours==1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d days, %d hour, %d minutes and %d seconds",days,hours,minutes,seconds)
}elseifdays!=1&&hours==1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d days, %d hour, %d minutes and %d second",days,hours,minutes,seconds)
}elseifdays!=1&&hours==1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d days, %d hour, %d minute and %d seconds",days,hours,minutes,seconds)
}elseifdays!=1&&hours==1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d days, %d hour, %d minute and %d second",days,hours,minutes,seconds)
}elseifdays==1&&hours!=1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d day, %d hours, %d minutes and %d seconds",days,hours,minutes,seconds)
}elseifdays==1&&hours!=1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d day, %d hours, %d minutes and %d second",days,hours,minutes,seconds)
}elseifdays==1&&hours!=1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d day, %d hours, %d minute and %d seconds",days,hours,minutes,seconds)
}elseifdays==1&&hours!=1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d day, %d hours, %d minute and %d second",days,hours,minutes,seconds)
}elseifdays==1&&hours==1&&minutes!=1&&seconds!=1{
returnfmt.Sprintf("%d day, %d hour, %d minutes and %d seconds",days,hours,minutes,seconds)
}elseifdays==1&&hours==1&&minutes!=1&&seconds==1{
returnfmt.Sprintf("%d day, %d hour, %d minutes and %d second",days,hours,minutes,seconds)
}elseifdays==1&&hours==1&&minutes==1&&seconds!=1{
returnfmt.Sprintf("%d day, %d hour, %d minute and %d seconds",days,hours,minutes,seconds)
}elseifdays==1&&hours==1&&minutes==1&&seconds==1{
returnfmt.Sprintf("%d day, %d hour, %d minute and %d second",days,hours,minutes,seconds)
}
returnfmt.Sprintf("%d days, %d hours, %d minutes and %d seconds",days,hours,minutes,seconds)