Skip to content

The Phantombot streaming bot running in a docker container.

Notifications You must be signed in to change notification settings

SleepyMario/phantombot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

What is this?

  • Docker container
  • Phantombot
  • Alpine Linux
  • Settings are saved upon restart
  • Automatic backup every 24 hours (defaults at 2:37 AM)
  • Includes both stable & nightly builds
  • Nightly images are renewed every 24h

Functionality

  • 100%

--> Please let me know if anything fails to work!

How to run

  • Decide which branch to use. Currently there are three branches available: nightly (for the nightly development builds), stable (for the latest stable version, currently 3.0.0), and 2.4.2 (the latest stable version of the 2.x series). Please never use the 'latest' version, as you might get a different version from what you're expecting!
  • You will need to mount the config files so your settings and data will be saved upon exit.
  • The keystore.jks file is optional (only add it when using https).
  • Edit the command below according to your needs.
  • Finally open ports 25000-25004 of your firewall.
docker run -it \ 
	-v /PATH/TO/botlogin.txt:/phantombot/config/botlogin.txt \
	-v /PATH/TO/phantombot.db:/phantombot/config/phantombot.db \
	-v /PATH/TO/keystore.jks:/phantombot/config/keystore.jks \
	-v /PATH/TO/BACKUP/:/backup \
	-v /etc/localtime:/etc/localtime:ro \
	--net=host \
	sleepiestmario/phantombot:stable

All botlogin.txt arguments

Below are all the args for use on twitch with any of the following optionally enabled: HTTPS, Mariadb/MySQL, Streamlabs, Gamewisp, Discord, Twitter and Youtube.

For more information on the arguments below, please click here . Booleans are set with true or false.

BASIC CONFIGURATION

  • baseport=Starting port, normally 25000
  • owner=Name of the broadcaster
  • clientid=Typically blank or not set. Can be obtained from Twitch
  • devcommands=To help live debug with users. Enabled by default
  • logtimezone=Specifies a timezone for logging
  • msglimit30=No. of messages allowed to send to Twitch within 30 secs
  • musicenable=Boolean, to enable/disable the Youtube player web interface
  • panelpassword=Password to access the control panel and Youtube player
  • paneluser=User used to access the control panel and Youtube player
  • twitch_tcp_nodelay=Boolean, enabling sends messages faster vs costing bandwith. Default=enabled
  • usemessagequeue=Boolean, disabling removes delay between messages. Default=enabled
  • user=Name of your Phantombot
  • web_enable=Boolean, enable/disable the web server
  • whisperlimit60=Number of whispers allowed in 60 seconds. Not used at present

HTTPS---how-to here

  • usehttps=Boolean, requires httpsFilename and httpsPassword to be set
  • httpsFileName=/PATH/TO/keystore.jks
  • httpsPassword=Password of keystore.jks

MARIADB/MYSQL/SQLITE/INISTORE

  • datastore=mysqlstore/inistore (text-based on-disk system). Default=SqlLite3
  • datastoreconfig=/PATH/TO/FILE for inistore and SQLite3. Configures different data store types

FOR MARIADB/MYSQL---how-to here

  • mysqlhost=Hostname of host
  • mysqlname=Name of database
  • mysqlpass=Password of user
  • mysqlport=Set if Mariadb/MySQL runs on alternative port
  • mysqluser=Name of user

TWITCH CREDENTIALS

  • oauth=*Twitch IRC chat OAuth token. Get it here *
  • apioauth=*API OAuth key. Get it here *
  • channel=Twitch channel phantombot will log into

TWITTER CREDENTIALS---how-to here

  • twitterUser=Name of Twitter account
  • twitter_consumer_key=Twitter authorization key
  • twitter_consumer_secret=Twitter authorization key
  • twitter_access_token=Twitter authorization key
  • twitter_secret_token=Twitter authorization key

STREAMLABS CREDENTIALS---how-to here

  • twitchalertskey=Streamlabs (previously TwitchAlerts) authentication key
  • twitchalertslimit=Max no of donations to query in 1 go. Keep low

DISCORD_CREDENTIALS---how-to here

  • discord_token= Discord token

GAMEWISP CREDENTIALS---how-to here

  • gamewispauth=Autorization token
  • gamewisprefresh=Autorization refresh token

YOUTUBE CREDENTIALS

  • youtubekey=Optional. Phantombot provides one internally

About

The Phantombot streaming bot running in a docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published