Skip to content

Cloudxtreme/mariomaker-twitch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Mario Maker twitch bot

Build Status

Twitch bot written in golang which collects Super Mario Maker level codes and adds them to MySQL database.

IRC code Based on https://github.com/Vaultpls/Twitch-IRC-Bot

Features

  • Reads messages from twitch chat and saves levelcodes to MySQL database, one code per message, no duplicates
  • Everytime streamer uses !level command a new random level is selected from database
  • Viewers can get last selected level with the same !level command
  • !reroll command for rerolling a level and putting the current chosen level back to the random pool
  • !skip command for skipping a level, eg. submitted level not beaten, wrong code etc.
  • !level and !skip commands supports optional [comment] parameter, which affects the currently chosen level.
  • Multichannel support and Website support
  • Checks if the level submitter is watching the stream!

Install

  • Go to your go project folder
  • Get dependencies go get github.com/go-sql-driver/mysql go get github.com/fatih/color go get github.com/vharitonsky/iniflags
  • Get twitch bot go get github.com/laam4/mariomaker-twitch
  • Create database and user to MySQL
  • Edit default.ini
  • Type go install github.com/laam4/mariomaker-twitch
  • Run bot from your GOPATH/bin folder with -config parameter using an absolute path for the ini file (e.g. /home/user/gocode/bin/mariomaker-twitch -config /home/user/default.ini)

Web site setup

  • Copy all of the files in the web folder to your web server
  • Edit the conf.php file and enter in the same mysql connection parameters used in the ini file
  • Verify that it works by navigating to index.php in the directory chosen in the first step

TODO:

About

Twitch bot written in golang which collects Super Mario Maker level codes and adds them to MySQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 77.4%
  • PHP 19.5%
  • CSS 3.1%