formatting

This commit is contained in:
lyx0 2021-10-21 01:43:10 +02:00
parent 3de45edff0
commit 340afc9e4d
2 changed files with 45 additions and 2 deletions

View file

@ -17,5 +17,4 @@ func Weather(channel string, location string, nb *bot.Bot) {
} }
nb.Send(channel, reply) nb.Send(channel, reply)
} }

View file

@ -37,6 +37,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "xd") nb.Send(target, "xd")
} }
case "botstatus": case "botstatus":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()botstatus [username]") nb.Send(target, "Usage: ()botstatus [username]")
@ -45,30 +46,39 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.BotStatus(target, cmdParams[1], nb) commands.BotStatus(target, cmdParams[1], nb)
return return
} }
case "bttvemotes": case "bttvemotes":
commands.BttvEmotes(target, nb) commands.BttvEmotes(target, nb)
return return
case "cf": case "cf":
commands.Coinflip(target, nb) commands.Coinflip(target, nb)
return return
case "coin": case "coin":
commands.Coinflip(target, nb) commands.Coinflip(target, nb)
return return
case "coinflip": case "coinflip":
commands.Coinflip(target, nb) commands.Coinflip(target, nb)
return return
case "color": case "color":
commands.Color(message, nb) commands.Color(message, nb)
return return
case "mycolor": case "mycolor":
commands.Color(message, nb) commands.Color(message, nb)
return return
case "echo": case "echo":
commands.Echo(target, message.Message[7:len(message.Message)], nb) commands.Echo(target, message.Message[7:len(message.Message)], nb)
return return
case "8ball": case "8ball":
commands.EightBall(target, nb) commands.EightBall(target, nb)
return return
case "ffzemotes": case "ffzemotes":
commands.FfzEmotes(target, nb) commands.FfzEmotes(target, nb)
return return
@ -81,6 +91,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Fill(target, message.Message[7:len(message.Message)], nb) commands.Fill(target, message.Message[7:len(message.Message)], nb)
return return
} }
case "firstline": case "firstline":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()firstline [channel] [user]") nb.Send(target, "Usage: ()firstline [channel] [user]")
@ -92,6 +103,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Firstline(target, cmdParams[1], cmdParams[2], nb) commands.Firstline(target, cmdParams[1], cmdParams[2], nb)
return return
} }
case "fl": case "fl":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()firstline [channel] [user]") nb.Send(target, "Usage: ()firstline [channel] [user]")
@ -103,6 +115,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Firstline(target, cmdParams[1], cmdParams[2], nb) commands.Firstline(target, cmdParams[1], cmdParams[2], nb)
return return
} }
case "followage": case "followage":
if msgLen <= 2 { if msgLen <= 2 {
nb.Send(target, "Usage: ()followage [channel] [user]") nb.Send(target, "Usage: ()followage [channel] [user]")
@ -111,6 +124,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Followage(target, cmdParams[1], cmdParams[2], nb) commands.Followage(target, cmdParams[1], cmdParams[2], nb)
return return
} }
case "game": case "game":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()game [channel]") nb.Send(target, "Usage: ()game [channel]")
@ -118,6 +132,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
} else { } else {
commands.Game(target, cmdParams[1], nb) commands.Game(target, cmdParams[1], nb)
} }
case "godoc": case "godoc":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()godoc [term]") nb.Send(target, "Usage: ()godoc [term]")
@ -126,6 +141,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Godocs(target, message.Message[8:len(message.Message)], nb) commands.Godocs(target, message.Message[8:len(message.Message)], nb)
return return
} }
case "godocs": case "godocs":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()godoc [term]") nb.Send(target, "Usage: ()godoc [term]")
@ -134,24 +150,29 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Godocs(target, message.Message[9:len(message.Message)], nb) commands.Godocs(target, message.Message[9:len(message.Message)], nb)
return return
} }
case "num": case "num":
if msgLen == 1 { if msgLen == 1 {
commands.RandomNumber(target, nb) commands.RandomNumber(target, nb)
} else { } else {
commands.Number(target, cmdParams[1], nb) commands.Number(target, cmdParams[1], nb)
} }
case "number": case "number":
if msgLen == 1 { if msgLen == 1 {
commands.RandomNumber(target, nb) commands.RandomNumber(target, nb)
} else { } else {
commands.Number(target, cmdParams[1], nb) commands.Number(target, cmdParams[1], nb)
} }
case "ping": case "ping":
commands.Ping(target, nb) commands.Ping(target, nb)
return return
case "pingme": case "pingme":
commands.Pingme(target, message.User.DisplayName, nb) commands.Pingme(target, message.User.DisplayName, nb)
return return
case "preview": case "preview":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()preview [channel]") nb.Send(target, "Usage: ()preview [channel]")
@ -160,18 +181,22 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Thumbnail(target, cmdParams[1], nb) commands.Thumbnail(target, cmdParams[1], nb)
return return
} }
case "profilepicture": case "profilepicture":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()profilepicture [user]") nb.Send(target, "Usage: ()profilepicture [user]")
return return
} }
commands.ProfilePicture(target, cmdParams[1], nb) commands.ProfilePicture(target, cmdParams[1], nb)
return return
case "pfp": case "pfp":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()pfp [user]") nb.Send(target, "Usage: ()pfp [user]")
return return
} }
commands.ProfilePicture(target, cmdParams[1], nb) commands.ProfilePicture(target, cmdParams[1], nb)
return return
@ -183,33 +208,43 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
} else { } else {
nb.Send(target, "Pleb's can't pyramid FeelsBadMan") nb.Send(target, "Pleb's can't pyramid FeelsBadMan")
} }
case "randomcat": case "randomcat":
commands.RandomCat(target, nb) commands.RandomCat(target, nb)
return return
case "cat": case "cat":
commands.RandomCat(target, nb) commands.RandomCat(target, nb)
return return
case "randomdog": case "randomdog":
commands.RandomDog(target, nb) commands.RandomDog(target, nb)
return return
case "dog": case "dog":
commands.RandomDog(target, nb) commands.RandomDog(target, nb)
return return
case "randomduck": case "randomduck":
commands.RandomDuck(target, nb) commands.RandomDuck(target, nb)
return return
case "duck": case "duck":
commands.RandomDuck(target, nb) commands.RandomDuck(target, nb)
return return
case "fox": case "fox":
commands.RandomFox(target, nb) commands.RandomFox(target, nb)
return return
case "randomfox": case "randomfox":
commands.RandomFox(target, nb) commands.RandomFox(target, nb)
return return
case "randomxkcd": case "randomxkcd":
commands.RandomXkcd(target, nb) commands.RandomXkcd(target, nb)
return return
case "subage": case "subage":
if msgLen < 3 { if msgLen < 3 {
nb.Send(target, "Usage: ()subage [user] [streamer]") nb.Send(target, "Usage: ()subage [user] [streamer]")
@ -218,6 +253,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Subage(target, cmdParams[1], cmdParams[2], nb) commands.Subage(target, cmdParams[1], cmdParams[2], nb)
return return
} }
case "thumb": case "thumb":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()thumb [channel]") nb.Send(target, "Usage: ()thumb [channel]")
@ -226,6 +262,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Thumbnail(target, cmdParams[1], nb) commands.Thumbnail(target, cmdParams[1], nb)
return return
} }
case "thumbnail": case "thumbnail":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()thumbnail [channel]") nb.Send(target, "Usage: ()thumbnail [channel]")
@ -234,6 +271,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Thumbnail(target, cmdParams[1], nb) commands.Thumbnail(target, cmdParams[1], nb)
return return
} }
case "title": case "title":
if msgLen == 1 { if msgLen == 1 {
commands.Title(target, target, nb) commands.Title(target, target, nb)
@ -242,6 +280,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Title(target, cmdParams[1], nb) commands.Title(target, cmdParams[1], nb)
return return
} }
case "uptime": case "uptime":
if msgLen == 1 { if msgLen == 1 {
commands.Uptime(target, target, nb) commands.Uptime(target, target, nb)
@ -250,6 +289,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Uptime(target, cmdParams[1], nb) commands.Uptime(target, cmdParams[1], nb)
return return
} }
case "uid": case "uid":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()uid [username]") nb.Send(target, "Usage: ()uid [username]")
@ -258,6 +298,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Userid(target, cmdParams[1], nb) commands.Userid(target, cmdParams[1], nb)
return return
} }
case "userid": case "userid":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()userid [username]") nb.Send(target, "Usage: ()userid [username]")
@ -266,6 +307,7 @@ 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]")
@ -274,11 +316,13 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Weather(target, message.Message[9:len(message.Message)], nb) commands.Weather(target, message.Message[9:len(message.Message)], nb)
return return
} }
case "xd": case "xd":
commands.Xd(target, nb) commands.Xd(target, nb)
return
case "xkcd": case "xkcd":
commands.Xkcd(target, nb) commands.Xkcd(target, nb)
return return
} }
} }