epistemicpolymath / polymathicalbot Goto Github PK
View Code? Open in Web Editor NEWA Twitch Chat bot using Twitch-js.
License: MIT License
A Twitch Chat bot using Twitch-js.
License: MIT License
These commands can be simply:
!youtube / !ytube / !yt
!twitter
!insta / !instagram
This way users can have easy access to my links without having to scroll down to my panels.
Line 121 in d8139f4
So fun idea to solve the issue you are having with the !uptime
command, perhaps we can add some conditional logic based on the return type of a command.
If the return of a command is a string, that can be sent directly. If it is a promise, maybe await
on it and send that result?
Something like:
let response = command(trimmedMessage, user, channel);
if (typeof response === 'string') {
// send message
} else if (response instanceof Promise) {
// send 'await response'
}
Thoughts?
Judahnator shared this one with me, I am curious about what it entails and I will get right into implementing it.
You mentioned it on stream, could be fun to have a command to load up the leaderboard
The second if
statement below can never be triggered.
Lines 44 to 52 in 84ef2f6
I definitely want to get started on this project, but I definitely need more knowledge to pull it off.
This ban command will accept the username for ban as well as a length of time for a ban. The bot will then store a date for a time for unban and if the bot is on on or after that date the user will be unbanned.
Example:
!ban twitchUsername month / week / 3 days
It may be a nice feature to try to figure out making where non-mods have a cooldown before they are able to submit another note so this can reduce note spam, instead of only allowing notes for mods.
The cooldown can last for 1min or so.
Still thinking this one through, but maybe a fun games command that will shoot out fun interactive games that viewers can interact with in chat.
I want people to feel comfortable reaching out to me on discord, but my name has Japanese in it so if I post it they can simply copy and paste and add me :D! May improve this in the future.
Likely dont want to be tracking changes to that CSV file.
You could commit a change that removes its contents and just leaves the headers, then use something like this to keep the file tracked but assume the contents are not changed.
I wanted to add a command that links to the Amazon link for the capture card I use for streaming.
I want to better understand this problem and then I can fix it. So I will review it a bit and see what I can do.
Was mentioned on stream, could be handy to make a command where the user can provide a note for the broadcaster.
Maybe a !note {note for broadcaster}
syntax that writes to a CSV file with the timestamp the note was created.
Line 72 in 5cabb11
You are making a bunch of calls to message.trim()
. Maybe define a local variable trimmedMessage
or something?
Also, the user['mod']
bit is already a boolean so no need to check if it is === true|false
.
This command will allow a user (Broadcaster and Mods only) to create a !poll. Upon running the command a sequence of data can be given.
Example:
!poll question option1 option2... timer
Then if a poll is already running a timer will be set to allow viewers to give responses by number:
!poll 1 (for option 1)
Then the values will be added up and a results will output.
I am still thinking this through for now.
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.