mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
cleanup a bit
This commit is contained in:
parent
1b7828032b
commit
7ededaae9f
2 changed files with 3 additions and 4 deletions
|
@ -20,8 +20,8 @@ func (b *Bot) Send(target, text string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// if message[0] == '.' || message[0] == '/' {
|
// if text[0] == '.' || text[0] == '/' {
|
||||||
// message = ". " + message
|
// text = ". " + text
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if len(text) > 500 {
|
if len(text) > 500 {
|
||||||
|
|
|
@ -203,7 +203,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||||
}
|
}
|
||||||
case "thumb":
|
case "thumb":
|
||||||
if msgLen == 1 {
|
if msgLen == 1 {
|
||||||
nb.Send(target, "Usage: ()thumbnail [channel]")
|
nb.Send(target, "Usage: ()thumb [channel]")
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
commands.Thumbnail(target, cmdParams[1], nb)
|
commands.Thumbnail(target, cmdParams[1], nb)
|
||||||
|
@ -249,7 +249,6 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||||
commands.Userid(target, cmdParams[1], nb)
|
commands.Userid(target, cmdParams[1], nb)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
case "weather":
|
case "weather":
|
||||||
if msgLen == 1 {
|
if msgLen == 1 {
|
||||||
nb.Send(target, "Usage: ()weather [location]")
|
nb.Send(target, "Usage: ()weather [location]")
|
||||||
|
|
Loading…
Reference in a new issue