question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot not posting message

See original GitHub issue
mybot.on("message", function(message) {
    if(message.content === "!Live") {
        getJSON("https://api.twitch.tv/kraken/streams/Jonathan_x64?callback=?", function(c) {
                    if (c.stream == null) {
                        //ofline
                        mybot.reply(message, "she is currently not live");
                    } else {
                        //online
                        mybot.reply(message, "she is currently live");
                    }
                }),
    }
});

also wont long anything in the console when using console.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mnlkrscommented, May 23, 2016
mybot.on("message", function(message) {
    if (message.content === "!Live") {
        getJSON("https://api.twitch.tv/kraken/streams/Jonathan_x64", function(err, res) {
            if (res.stream == null) {
                mybot.reply(message, "she is currently not live");
            } else {
                mybot.reply(message, "she is currently live");
            }
        });
    }
});
0reactions
mnlkrscommented, May 23, 2016

can you close the issue ty

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord bot not sending messages : r/Discord_Bots - Reddit
Hello, I am a beginner to using discord. js and cannot figure out why my bot isn't replying with a message whenever I...
Read more >
Messages not sending with discord bot - Stack Overflow
The bot is online and on the server I want it to, with admin permissions as well. I am sure the intents are...
Read more >
Sending messages - Slack API
Transform monologues into conversations, and conversations into workflows, by learning how apps can publish messages.
Read more >
Chat bot not posting unless its a moderator
It was working fine in testing, but no longer appears to be posting messages. It only posts at roughly once a minute to...
Read more >
FAQ - Carl-bot Documentation
The bot tries to detect when you're reading the chat and not spam you with unnecessary pings. If you wish to see if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found