remove some logs

This commit is contained in:
lyx0 2021-10-22 22:24:13 +02:00
parent 5d4c5b4402
commit 6edccd2b24
5 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ var (
// More information: // More information:
// https://gist.github.com/pajlada/57464e519ba8d195a97ddcd0755f9715 // https://gist.github.com/pajlada/57464e519ba8d195a97ddcd0755f9715
func CheckMessage(text string) (bool, string) { func CheckMessage(text string) (bool, string) {
log.Info("fn CheckMessage") // log.Info("fn CheckMessage")
// {"message": "AHAHAHAHA LUL"} // {"message": "AHAHAHAHA LUL"}
reqBody, err := json.Marshal(map[string]string{ reqBody, err := json.Marshal(map[string]string{

View file

@ -36,7 +36,7 @@ func EmoteLookup(emote string) (string, error) {
var responseObject emoteLookupResponse var responseObject emoteLookupResponse
json.Unmarshal(body, &responseObject) json.Unmarshal(body, &responseObject)
log.Info(responseObject.Tier) // log.Info(responseObject.Tier)
// Emote not found // Emote not found
if responseObject.Error != "" { if responseObject.Error != "" {

View file

@ -22,6 +22,7 @@ type followageApiResponse struct {
// Followage returns the time since a given user followed a given streamer // Followage returns the time since a given user followed a given streamer
func Followage(streamer string, username string) (string, error) { func Followage(streamer string, username string) (string, error) {
baseUrl := "https://api.ivr.fi/twitch/subage" baseUrl := "https://api.ivr.fi/twitch/subage"
resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, username, streamer)) resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, username, streamer))
if err != nil { if err != nil {
log.Error(err) log.Error(err)

View file

@ -7,13 +7,12 @@ import (
"github.com/lyx0/nourybot/cmd/bot" "github.com/lyx0/nourybot/cmd/bot"
"github.com/lyx0/nourybot/pkg/commands" "github.com/lyx0/nourybot/pkg/commands"
"github.com/lyx0/nourybot/pkg/utils" "github.com/lyx0/nourybot/pkg/utils"
"github.com/sirupsen/logrus"
) )
// Command contains all the logic for routing mesasges containing commands // Command contains all the logic for routing mesasges containing commands
// and will forward the messages to the specific command handlers. // and will forward the messages to the specific command handlers.
func Command(message twitch.PrivateMessage, nb *bot.Bot) { func Command(message twitch.PrivateMessage, nb *bot.Bot) {
logrus.Info("fn Command") // logrus.Info("fn Command")
utils.CommandUsed() utils.CommandUsed()

View file

@ -9,7 +9,7 @@ import (
// PrivateMessage checks messages for correctness and forwards // PrivateMessage checks messages for correctness and forwards
// commands to the command handler. // commands to the command handler.
func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) { func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) {
log.Info("fn PrivateMessage") // log.Info("fn PrivateMessage")
// log.Info(message) // log.Info(message)
// roomId is the Twitch UserID of the channel the message // roomId is the Twitch UserID of the channel the message