Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anderlechtt/mos_bot
A bot playing Marbles On Stream with Twitch streamers. Written in Ruby.
https://github.com/anderlechtt/mos_bot
ruby twitch
Last synced: 26 days ago
JSON representation
A bot playing Marbles On Stream with Twitch streamers. Written in Ruby.
- Host: GitHub
- URL: https://github.com/anderlechtt/mos_bot
- Owner: anderlechtt
- Created: 2018-11-08T22:53:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T12:42:43.000Z (over 2 years ago)
- Last Synced: 2024-08-03T13:01:57.837Z (4 months ago)
- Topics: ruby, twitch
- Language: Ruby
- Size: 9.77 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-twitch-dev - anderlechtt/mos_bot - Bot playing Marbles On Stream with Twitch streamers. (Libraries / Ruby)
README
MOSBot [![alt text](https://api.codeclimate.com/v1/badges/6ddeda072827f6726041/maintainability)](https://codeclimate.com/github/anderlechtt/mos_bot/maintainability)
======A bot playing [Marbles On Stream](http://pixelbypixelcanada.com/mos.html) with Twitch streamers. Written in Ruby.
How does it work?
-----------------MOSBot
- fetches every 2 minutes up to 5 Twitch live streams featuring Marbles On Stream with more than 50 viewers
- joins these channels and waits for many people to enter "!play" in the chat
- joins the game by sending a "!play" message to the Twitch Chat
- waits 210 seconds before play detection starts againFeatures
--------- doesn't spam chat
- only sends a !play message if there are other players
- automatically joins new streams
- automatically leaves streams not playing MOS any longerConfiguration
-------------MOSBot needs an OAuth key to join the Twitch Chat and a client ID to
fetch streams from the Twitch Kraken API. You can edit the configuration
in config.yml.How to get an Twitch Chat OAuth key? Use the [Twitch Chat OAuth Password Generator](https://twitchapps.com/tmi/).
How to get a client ID? [Register the app on the Twitch dev portal](https://dev.twitch.tv/dashboard/apps/create).
Dependencies
------------- [Cinch](https://github.com/cinchrb/cinch) - IRC bot library used for joining Twitch Chat
- [HTTParty](https://github.com/jnunemaker/httparty) - http library used for Twitch API requests