Bot console on linux?

PhantomBot Version: 2.4.2
OS Version: Linux
Java Version: No clue
Browser and Version (for Panel Support): Chromium
Stock PhantomBot: Yes

Let us know what help you need:

Goodness I thought this would be easy before I started, and setting it up has been, for the most part. However, I see all of these references to the “bot console” and I have not been able to access it. No where can I find how to get to it on Linux (Raspberry Pi) and I’m not sure what to do. After I figure out how to get to the bot console, my next step is getting my Twitter activated on my bot.

Anyway, thanks for all of the help guys. This community and the work you have done to make this bot a thing is truly amazing.

The bot console is what you are presented with when you run PhantomBot in the foreground.

[morpheus] /opt/iobot
illusion% ./
[01-02-2019 @ 22:07:19.423 GMT] The working directory is: /usr/local/opt/iobot
[01-02-2019 @ 22:07:19.427 GMT] Detected Java 1.8.0_102 running on Linux 4.8.13-100.fc23.x86_64 (amd64)
[01-02-2019 @ 22:07:19.429 GMT] Enabling Script Reloading
[01-02-2019 @ 22:07:19.431 GMT]
[01-02-2019 @ 22:07:19.431 GMT] PhantomBot Version: 2.4.2
[01-02-2019 @ 22:07:19.431 GMT] Build Revision: 5d04fc4
[01-02-2019 @ 22:07:19.432 GMT] Creator: mast3rplan
[01-02-2019 @ 22:07:19.432 GMT] Developers: PhantomIndex, Kojitsari, ScaniaTV, Zackery (Zelakto) & IllusionaryOne
[01-02-2019 @ 22:07:19.432 GMT]
[01-02-2019 @ 15:07:33.167 MST] Connecting to Twitch WS-IRC Server (SSL) []
[01-02-2019 @ 15:07:33.489 MST] Connected to [email protected] (SSL)
[01-02-2019 @ 15:07:33.594 MST] Channel Joined [#notillusionaryone]
[01-02-2019 @ 15:07:33.731 MST] illusionarybot ready!
[01-02-2019 @ 15:07:33.869 MST] Data Render Service API Key Present, Enabling Data Feed
[01-02-2019 @ 15:07:34.240 MST] Connected to Twitch Moderation Data Feed
this is the console
[01-02-2019 @ 15:07:39.146 MST] [MUTED] @IllusionaryBot, Mods in channel: illusionarybot

Now, if you are running PhantomBot as a service, then you are not presented with the Console. You would need to stop the service and run the bot in the foreground to perform any Console work, then shutdown the bot and restart the service.

What does it mean to run on foreground versus as a service? I just followed the Linux instructions to set up the bot

This explains it fairly well. A service is a background process.

Thank you! I really appreciate the work you do. I’m a noob so I need all the help I can get

No problem. Sorry I cannot go into too many details, my schedule is hectic! A lot of Linux administration you will pick up over time. Just keep hacking at it!

i have bot runing from rc.local as screen with name XD can faster check with name

screen -r bot

Yes, but I imagine that does not allow for automatic restarts in case of a crash or JVM error and for folks like me that run bots for other streamers on a server with SSL certificates, I have jobs setup to auto-renew SSL and restart the bot via service. There are some advantages to using a service rather than something in rc.local that also doesn’t ensure that the machine is fully up and verifies that the network connection is up like services can do.

Good read:

When it is Not Ok to use the /etc/rc.local file
The following are examples of rc.local misuse that I have seen with my own eyes. Usually this is caused by either a lack of understanding or just the lazy nature of a Sysadmin.

Starting an Application/Service
I’ve seen this many times, in fact when I was googling around for examples of rc.local I found an example where someone put the instructions needed to start apache into the /etc/rc.local file.

**Why this is bad: **The rc.local file may start up your service just fine, but when the system is shutting down the init process will not stop your application gracefully. If your application uses lock files this may mean your application doesn’t start on the next boot. In cases of applications it is always best to create an init script (or alternative depending on your distro i.e. Upstart or Systemd).

It would be bad if PhantomBot was not shutdown gracefully and the DB experienced a data corruption event.

Again, reasons we recommend services.

i use rc.local and i never have java errors any errors i found is api of twitter dont respond XD or return errors

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.