vivelin / waterbot Goto Github PK
View Code? Open in Web Editor NEWGeneric Twitch chat bot
Generic Twitch chat bot
Also rename it from static to simple commands
No point in trying to make logging as broad as possible, so let's tailor it specifically to this code, e.g.:
Log.AddMessage(Message message)
Log.AddEvent(Events.TalkingToMyself)
Log.AddEvent(Events.MuteEnabled, message)
public class LogEvent : ILogEvent { }
public static class Events
{
public static readonly LogEvent MuteEnabled = new LogEvent("{0} enabled Mute on channel {1}");
}
e.g. in uptime
responses
Broadcaster: red
Mods: green
With exponentially increasing timeouts.
We can't keep passing things as command line parameters.
This seems like a promising start: http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
Then we can create a website (separate repository?) to function as bot admin.
poll
: link to http://strawpoll.me/ to create a new poll -- doing it through chat is awkward and error-prone
poll <link> <timeout>
: sends the poll to chat, and automatically collects the result after timeout
seconds
Can use the strawpoll API to check results: https://github.com/strawpoll/strawpoll/wiki/API
Only mods should be able to start polls
Required for #25 to work properly.
e.g. explaining that a channel uses FFZ, or showcasing a certain command.
The messages should only be shown if the bot hasn't said anything in the past 10 minutes, and the bot should cycle through the messages to prevent showing the same message twice in a row.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.