memelabs / modbot Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chat.strims.gg/
Home Page: https://chat.strims.gg/
It may be interesting to be able to have either multiple command names such as !ext
and !extension
for ease but not sure if regex would be the best.
rate limit usage of (some) commands by user-group (mod/user/...).
consider usability for commands that have a reason to be called often... - potentially per-user limit
reports "error getting api data", but should be "not found".
Alternatively support non-AT users in !check
.
simple quick and dirty command for random issues.
desired input
!addcommand [command] [text]
desired output
![command] [text]
monitor stream title changes for community streams and post notifications in chat
add functionality that allows to set links/messages that are posted in chat at some configurable interval (e.g. every x min or every x messages or a combination of those).
Especially for !embed
, but also others that apply, take care of tagging stuff nsfw/nsfl. (in case of embed, take whatever the user provided?)
Tests are failing
drop error: invalid character 'u' looking for beginning of value
Has something to do with the response from AT and unmarshaling it.
Mirror website frontpage, i.e. give community streams preference.
The formula (in a nutshell)
int63n( int(sides-1) * count ) + count
isn't quite accurate to independent dice rolls. With count>1, all possible numbers are equally likely. Two six-sided dice (for example) have 7 being the most likely sum, and 2 or 12 least likely. So, it requires "count" number of calls to this rng; roughly,
s = 0;
for i=1 to count inclusive,
s = s + int63n( int(sides) ) + 1
end for
return s
Probably means there should be an upper limit to number of dice to roll at once.
(note - also don't need sides-1, since int63n doesn't include the final value in the argument; int63n(2) gives 0 or 1 for example. (I'm only getting the number 1 when rolling a 2-sided dice.)
add basic regex for more/all supported services.
todo: youtube /embed/ links.
doesn't seem to happen atm.
Link people to usage or so.
mod-only, reply in chat with status like if stream is tagged as nsfw currently.
Check is failing due to invalid API data being returned
[##] checkAT time: 'parsing time "" as "2006-01-02T15:04:05.999999999Z07:00": cannot parse "" as "2006"'
Once we know how to handle new afk/promoted stuff.
Also: new afk_rustlers value
add time option and parsing.
chat is /mute|ban <username> <timenumber><m|h|d>
possible bot format !mute|ban<timenumber><m|h|d> <username>
or just reuse chat-format.
We shouldn't send mute if the messages are more than a certain time apart.
Similar to OPBot: <user> is live for <time> with <n users> at <full url>
but including stream title (probably truncated).
Use data from https://angelthump.com/api/<username>
.
Relevant data from json: title
; created_at
seems like the time the stream was started (use for uptime calculation).
in output of !stream and possible other ones. Also handling nsfw marked streams (more general issue exists already).
like !strim
or !STRIM
.
maybe; to be considered.
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.