Actually, to prevent your bot from getting points normally, you could assign it a penalty of, like, a hundred years. Then it won’t get normal points for being connected to chat while you’re live, and people can still feed it points to meet your community goals.
Posts made by Invariel
RE: community goals for spending points
RE: Idle Module
0_1488784935249_panelUtils.js - resources\web\panel\js\panelUtils.html - adds the code that refreshes the idle panel.
You are able to specify a time in hours, minutes, and seconds for both points and (random) picking, and you can specify the number of points that an idler will receive. This number can be negative, which will remove points from the user; zero; or positive, which will not be affected by subscriber bonuses. This number only applies to online points; offline point gain is unaffected.
Note: This module has not been tested in the field yet. I have tested things to the best of my ability while offline, but do not actively stream at the moment, and the stream that I wrote this module for will not be up until later tomorrow. All files are provided as-is, and I do not take responsibility for any effects they have on your channel. I highly recommend backing up your database first (and regularly in general), and greatly appreciate any feedback that you have.
Finally, this script was written and tested with PhantomBot 220.127.116.11.
Edit 1: idlePanel.js was updated to send a reload command whenever any of the sections are updated, so that settings changes are picked up immediately.
Edit 2: idleChatters.js was updated to correct a variable overlap issue that was causing issues with everything, and customCommands.js was updated to fix the difference between $.users and my collected users variable.
Edit 3: This is finally getting some play on a very supportive channel, and once things are working properly, I’ll post a finalized version.
RE: updateCache() failing to run - causing browser crashes and strange behavior.
All of those java.net.UnknownHostException: api.twitch.tv errors suggest that your bot couldn’t reach Twitch for a while.
[03-06-2017 @ 00:57:11.543 GMT] [SOCKET] Code [-1] Reason [irc-ws.chat.twitch.tv] Remote Hangup [false]
[03-06-2017 @ 00:57:11.553 GMT] [SOCKET] Code [-1] Reason [irc-ws.chat.twitch.tv] Remote Hangup [false]
[03-06-2017 @ 00:57:13.794 GMT] [readJsonFromUrl()@GitHubAPIv3.java:139] GitHubv3API::readJsonFromUrl::Exception: api.github.com
suggest a different problem, which might be related to all of the failed calls to api.twitch.tv, or could be something else entirely.
[Bug Report] Null Pointer Exception when Running (Custom) Command on Recently Joined Server while Bot was Online
[03-05-2017 @ 03:01:59.322 GMT] [ERROR] [init.js:326] (hook.call, discordCommand, ./discord/commands/customCommands.js) JavaException: java.lang.NullPointerException: null
Testing a scenario for a friend, we added my bot to a Discord server, started the bot, kicked the bot from the server, re-added it to the server, ran a custom command, and got that result.