- Docker Compose
- Environment variables via .env file
TWITCH_TOKEN: Twitch token (required scope:user:read:email+chat:read+chat:edit+moderator:manage:banned_users+moderation:read)TWITCH_CLIENT_ID: Client ID of Twitch token. Default value isgp762nuuoqcoxypju8c569th9wz7q5(Client ID of twitchtokengenerator.com)PREFIX: Basic command calling prefix.TRUSTABLE_USER: comma-seperated Twitch user login ID. These users get every permission of the bot. Optional.SAFE_BROWSING: Google Safe Browsing API key.MAX_CHANCE: Limit of roulette chance. Default value is 9999. If a user was timeouted MAX_CHANCE times, can't call룰렛anymore.DB_PATH: Path of DB. Empty directory is recommended.API_SERVER_PORT: Turn on API server in this port. Optional. If it is not given, API server will be disabled.- Is unset, docker-compose.yml will use 14785 port as fallback, although it is unset.
- Fill
<>inexample.env, and rename it to.env. - run with
docker compose up.
- Basic command
- Every basic command should be started with
PREFIX. 등록 <command> <response>: Register custom command that autoresponse<response>when<command>is detected in the chat. Command is registered per channel. If<command>or<response>includes spaces, it should be covered with backtick( ` ).- If response commands
;;, response will be seperated by permission.- For example,
a;;b;;cwill be seperated bya,b,c. - Third one(
c) is for only sudoers. - Second one(
b) is for channel mods. - First one(
a) is everyone. - If seperated command is not enough, it's response will be down one level.
- For example,
- If response commands
삭제 <command>: Delete custom command.목록: List custom command.룰렛: 1 in 6 chance to print탕!, and timeout caller 10 seconds with reason러시안 룰렛당해버린.머리수복 <user>: Increase one chance ofuser.학점 [user] [offset]- Without
userandoffsetor Called by non-moderator(both channel-specicated user and TRUSTABLE_USER), print oneself's score. - With
useronly, print user's score. - With both
userandoffset, addoffsetto user's score.
- Without
링크검열: Toggle Google Safe Browsing.
- Every basic command should be started with
Beta. Might be changed.
- URL :
/(root)- GET : List state.
//request : no header param or anything is required.
//response :
{
"joinedUser": [
//channels which are joined.
"solfibot"
]
}- URL :
/channel/{channelName}- POST : Join {channelName}.
- DELETE : Leave {channelName}.