[Discord] Going Live like Mee6 (Now with autohost)

autohost
dakoda
discord
javascript
phantombot

#41

they should now lol


#42

Yup all fixed :stuck_out_tongue:


#43

Version:
1.2.0 (best to be running any version after 13th march 2018)

Changes:

  • Added a auto host queue with a toggle on and off

Files:
*goingLiveSystem.js (14.9 KB)
*system-goingLiveSystem.js (2.1 KB)


#45

Version:
1.2.1

Changes:

  • Fixed a few bugs with the hosting system
  • Added a command to manually add people to the autohost queue (current session only and must be live)

Files:


#46

Channels remains in queue permanently and there is no option to remove channel(s) from the queue. Is it normal?


#47

they auto remove when they go offline


#48

No, I said “permanently”. I added (just for test) shroud, grimmmz and few other channels («!autohost add shroud» in discord), and now bot auto-host them every day. My auto-host list in twitch settings is empty. Say how to remove them without sql editor.


#49

This bit of code removes them if there not live unless you have changed the code yourself

                for (i = 0; i < hostingList.length; i++) {
                    if (!$.isOnline(hostingList[i])) {
                        autoHostQueue.remove(hostingList[i]);
                        $.consoleDebug(">> Running Autohost removal: " + hostingList[i]);
                    }
                }

#50

No, I didn’t. I use BBEdit with code comparison system that highlights differences. Differences were not found between your last updated files and my files.


#51

Look how many times your script “removed” auto-hosts for the same people (I added each streamer to auto-host queue only once a few days ago):

[03-21-2018 @ 01:20:29.700 MSK] >> Running Autohost poll: drainys
[03-21-2018 @ 01:20:29.704 MSK] [CHAT] .host drainys
[03-21-2018 @ 02:21:50.276 MSK] >> Running Autohost removal: preepman
[03-21-2018 @ 02:23:11.068 MSK] >> Running Autohost removal: preepman
[03-21-2018 @ 03:14:08.340 MSK] >> Running Autohost removal: fiftyfourthq
[03-21-2018 @ 03:20:29.394 MSK] >> Running Autohost poll: shroud
[03-21-2018 @ 03:20:29.395 MSK] [CHAT] .host shroud
[03-21-2018 @ 04:27:13.086 MSK] >> Running Autohost removal: shroud
[03-21-2018 @ 05:20:31.253 MSK] >> Running Autohost poll: drainys
[03-21-2018 @ 05:20:31.253 MSK] [CHAT] .host drainys
[03-21-2018 @ 07:20:31.353 MSK] >> Running Autohost poll: grimmmz
[03-21-2018 @ 07:20:31.353 MSK] [CHAT] .host grimmmz
[03-21-2018 @ 07:26:01.333 MSK] >> Running Autohost removal: drainys
[03-21-2018 @ 09:20:38.302 MSK] >> Running Autohost poll: maxiz0r
[03-21-2018 @ 09:20:38.302 MSK] [CHAT] .host maxiz0r
[03-21-2018 @ 11:20:43.081 MSK] >> Running Autohost poll: shroud
[03-21-2018 @ 11:20:43.081 MSK] [CHAT] .host shroud
[03-21-2018 @ 11:29:18.143 MSK] >> Running Autohost removal: maxiz0r
[03-21-2018 @ 11:51:30.583 MSK] >> Running Autohost removal: shroud
[03-21-2018 @ 12:02:00.730 MSK] >> Running Autohost removal: preepman
[03-21-2018 @ 12:43:14.144 MSK] >> Running Autohost removal: grimmmz
[03-21-2018 @ 13:20:42.516 MSK] >> Running Autohost poll: ktvsky
[03-21-2018 @ 13:20:42.517 MSK] [CHAT] .host ktvsky
[03-21-2018 @ 14:34:10.630 MSK] >> Running Autohost removal: ktvsky
[03-21-2018 @ 14:54:50.047 MSK] >> Running Autohost removal: preepman
[03-21-2018 @ 15:20:43.328 MSK] >> Running Autohost poll: vampiregame
[03-21-2018 @ 15:20:43.328 MSK] [CHAT] .host vampiregame
[03-21-2018 @ 15:22:44.077 MSK] >> Running Autohost removal: iskomina
[03-21-2018 @ 16:10:31.047 MSK] >> Running Autohost removal: vampiregame
[03-21-2018 @ 16:46:05.483 MSK] >> Running Autohost removal: iskomina
[03-21-2018 @ 16:55:32.813 MSK] >> Running Autohost removal: iskomina
[03-21-2018 @ 17:02:27.241 MSK] >> Running Autohost removal: fiftyfourthq
[03-21-2018 @ 17:06:47.642 MSK] >> Running Autohost removal: iskomina
[03-21-2018 @ 17:20:43.533 MSK] >> Running Autohost removal: drainys
[03-21-2018 @ 17:20:44.023 MSK] >> Running Autohost poll: preepman
[03-21-2018 @ 17:20:44.023 MSK] [CHAT] .host preepman
[03-21-2018 @ 17:23:02.536 MSK] >> Running Autohost removal: iskomina
[03-21-2018 @ 18:06:58.392 MSK] >> Running Autohost removal: preepman

#52

if you have them in your goinglive list then ya they will be added back when there live again have been running this script fine for over a week myself

run the command !autohost queue and i could 100% guarantee ever user in that list is live and even if you do !autohst add on a user thats offline then do !autohost queue again 60 seconds later they wont be in the queue as they get remove when they r offline


#53

Wait-wait… Do you want to say that !goingLive for some streamer include !autohost him? I didn’t know that and that’s srange option, to be honest. But it’s your script and your decision, no questions.


#54

Omg Dakoda thanks for this one! I will surely gonna use it!

Getting an error while somebody goes live:
[ERROR] [lambda$sendMessageEmbed$2()@DiscordUtil.java:139] Failed to send an embed message: [DiscordException] Failed to send embed message due to either the channel or builder being null.

Using the latest Nightly of PhantomBot


#55

You need to set the channel in Discord: !goinglive channel [channel in Discord]


#56

Edit:
Needed to do the channel without #

@Dakoda is it also posible to do it with the Twitch Header image from that streamers page?


#57

nope it uses there avatar image


#58

Ok thanks :).
But it works wonderfull!

One question i have received. Is it possible to post when somebody is live for like 5 minutes and not instant when somebody goes live?


#59

Nope as i dont have it check how long they have been live for and dont intent to add it


#60

Hi.

I have an prob with !autohost. I can’t disable it. every time i use !autohost toggle i become the answer is enabled. How can i disable autohost and run only goinglive?


#61

Hi there,

I’m encountering the same issue, with the added bonus of the !goinglive toggle always confirming enabled.

Running on Ubuntu VPS with Java 8.