Git Product home page Git Product logo

modbot's People

Contributors

dependabot-preview[bot] avatar hoppenr avatar jbpratt avatar slugalisk avatar somuchforsubtlety avatar talleyp avatar tensei avatar x-xymos avatar xdashh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

modbot's Issues

add rate limit

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

!addcommand feature requrest

simple quick and dirty command for random issues.

desired input
!addcommand [command] [text]
desired output
![command] [text]

add periodic messages

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).

add nsfw link awareness

Especially for !embed, but also others that apply, take care of tagging stuff nsfw/nsfl. (in case of embed, take whatever the user provided?)

drop command fails sometimes

drop error: invalid character 'u' looking for beginning of value

Has something to do with the response from AT and unmarshaling it.

da dice roll

https://github.com/MemeLabs/modbot/blob/e8162898beb7dece65bc325a250f22adf3da7eb0/commands.go#L565C17-L565C17

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 embed regexes

add basic regex for more/all supported services.
todo: youtube /embed/ links.

!check fails to parse api data

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"'

make mod commands more generic

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.

add !check username

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).

mark modified streams as such

in output of !stream and possible other ones. Also handling nsfw marked streams (more general issue exists already).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.