mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
remove some logs
This commit is contained in:
parent
5d4c5b4402
commit
6edccd2b24
5 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ var (
|
|||
// More information:
|
||||
// https://gist.github.com/pajlada/57464e519ba8d195a97ddcd0755f9715
|
||||
func CheckMessage(text string) (bool, string) {
|
||||
log.Info("fn CheckMessage")
|
||||
// log.Info("fn CheckMessage")
|
||||
|
||||
// {"message": "AHAHAHAHA LUL"}
|
||||
reqBody, err := json.Marshal(map[string]string{
|
||||
|
|
|
@ -36,7 +36,7 @@ func EmoteLookup(emote string) (string, error) {
|
|||
var responseObject emoteLookupResponse
|
||||
json.Unmarshal(body, &responseObject)
|
||||
|
||||
log.Info(responseObject.Tier)
|
||||
// log.Info(responseObject.Tier)
|
||||
|
||||
// Emote not found
|
||||
if responseObject.Error != "" {
|
||||
|
|
|
@ -22,6 +22,7 @@ type followageApiResponse struct {
|
|||
// Followage returns the time since a given user followed a given streamer
|
||||
func Followage(streamer string, username string) (string, error) {
|
||||
baseUrl := "https://api.ivr.fi/twitch/subage"
|
||||
|
||||
resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, username, streamer))
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
|
|
|
@ -7,13 +7,12 @@ import (
|
|||
"github.com/lyx0/nourybot/cmd/bot"
|
||||
"github.com/lyx0/nourybot/pkg/commands"
|
||||
"github.com/lyx0/nourybot/pkg/utils"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Command contains all the logic for routing mesasges containing commands
|
||||
// and will forward the messages to the specific command handlers.
|
||||
func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||
logrus.Info("fn Command")
|
||||
// logrus.Info("fn Command")
|
||||
|
||||
utils.CommandUsed()
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
// PrivateMessage checks messages for correctness and forwards
|
||||
// commands to the command handler.
|
||||
func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||
log.Info("fn PrivateMessage")
|
||||
// log.Info("fn PrivateMessage")
|
||||
// log.Info(message)
|
||||
|
||||
// roomId is the Twitch UserID of the channel the message
|
||||
|
|
Loading…
Reference in a new issue