ChatRat is a twitch chat bot built in Go that is a dedicated shitpost machine.

ChatRat

ChatRat is a twitch chat bot built in Go that is a dedicated shitpost machine. Also does some other things, but for now the main thing is just a markov shitpost generator.

Commands

Commands are permissioned, so only trusted users are allowed to execute them. Currently the commands are:

  • !chatrat stop Stops the constant markov text chatting
  • !chatrat start Starts the constant markov text chatting if it was previously stopped.
  • !chatrat set Sets variables inside of ChatRat. These include:
    • delay to set the delay between each message of the markov speech
  • !chatrat trust Adds a user to the trusted user list, letting them execute commands
  • !chatrat untrust Removes a user from the trusted user list
  • !chatrat ignore Ignores a user
  • !chatrat unignore More to come, just gotta work on it

Other stuff

Currently two emotes are set to join in a spam, catKiss and heCrazy.

How to run

Run it in CLI with some of the flags set, -oauth=oauth:code_here -botname=name_of_twitch_user -stream=name_of_stream_to_join

Owner
Pattycakes
Hi, I Am Pattycakes, a software dev who loves working on embedded applications, mainly in C/C++.
Pattycakes
Comments
  • Fix the broken dev

    Fix the broken dev

    With your really dumb untested merge to dev everything broke. Logger was freezing the app booting fully. Settings had typos in them.

    This should address the typos in the example settings.json as well as making logging actually functional.

  • Logging rework

    Logging rework

    The logging is kinda garbage. It always goes to console, and might be better if it's configurable. Also a binary, on/off for logging is kinda bad. Making it more verbose with logging levels will make it easier to tell what actually matters in the context.

  • Blacklisting

    Blacklisting

    Added blacklisting functionality to chatrat. Blacklisted things still go into chat logs, in case the data wants to be used later if the blacklist gets relaxed.

  • Blacklisting bad words

    Blacklisting bad words

    Need to have a list of thngs that it shouldn't listen to. Might be good to have it in a different file than the settings, just because it can be kinda icky to look at that stuff when you just want to change settings !chatrat reloadBlacklist to hot reload the blacklist. Might need to either figure out how to patch the markov chain (unlikely) or regen the model when the blackist is updated.

  • Issue#1 chatrat set delay bug

    Issue#1 chatrat set delay bug

    This PR should fix #1

    Migrated over to using tickers giving access to the ticker.Reset(duration) for altering the chat rat timer, I did remove the boundary based timer system as a result of that, but it shouldn't be too hard to add it back in.

    Added a !chatrat delay command as well to print out what the current delay is set to.

    Any questions give me a shout.

Related tags
Twitchbot - Go Twitch Bot Api wrapper, with an easy to use interface.

twitchbot Go Twitch Bot Api wrapper, with an easy to use interface. Example package main import ( "twitch/twitchbot" ) func main() { bot := twitch

Jan 8, 2022
Bot-template - A simple bot template for creating a bot which includes a config, postgresql database

bot-template This is a simple bot template for creating a bot which includes a c

Sep 9, 2022
A fast responsive, machine learning, conversational dialog engine for creating chat bots, written in Go.

chatbot English | 简体中文 项目说明 chatbot 是一个通过已知对话数据集快速生成回答的 Go 问答引擎。比 ChatterBot 快非常多,我们在1.2亿对话上的对比结果是:ChatterBot 回答需要21秒,chatbot 只需要18毫秒。 bot 问答引擎 cli tr

Jan 6, 2023
go irc client for twitch.tv

go-twitch-irc This is an irc client for connecting to twitch. It handles the annoying stuff like irc tag parsing. I highly recommend reading the docum

Dec 27, 2022
Search & watch Youtube videos from a Zoom Meeting chat bot.

Uut Download and search for Youtube videos from a Zoom meeting chatbot. Installation Download Golang and setup your environment Clone this repo Instal

Nov 2, 2021
Official Go Keybase chat bot SDK

go-keybase-chat-bot Write rich bots for Keybase chat in Go. Installation Make sure to install Keybase. go get -u github.com/keybase/go-keybase-chat-bo

Nov 13, 2022
A telegram bot to ban the chat spammers by channel, made with Golang.

ChannelBot A telegram bot to ban channels spamming chat. Vars TOKEN - Your Telegram Bot Token (@BotFather) More Information With the latest update of

Nov 8, 2022
A serverless bot which periodically checks configured BigQuery capacity commitments, reservations and assignments against actual slot consumption of running jobs and reports findings to Slack/Google Chat.
A serverless bot which periodically checks configured BigQuery capacity commitments, reservations and assignments against actual slot consumption of running jobs and reports findings to Slack/Google Chat.

Solution Guide This solution implements a ChatOps-like approach to monitoring slot utilization of Google Cloud BigQuery reservations. As an alternativ

Dec 7, 2022
HoloBot — An open-source Discord bot for Hololive fans, built with Go.

HoloBot HoloBot — An open-source Discord bot for Hololive fans, built with Go. Installation From Binary Download holobot binary here. Create a file ca

Dec 17, 2021
Snitch - a Slack bot that fetches pending review PRs built in Go
Snitch - a Slack bot that fetches pending review PRs built in Go

Snitch Snitch is a Slack bot that fetches and publish PRs with pendings reviews

Nov 29, 2022
A bot based on Telegram Bot API written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

InstagramRobot InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and

Dec 16, 2021
Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Dec 30, 2021
Quote-bot - Un bot utilisant l'API Twitter pour tweeter une citation par jour sur la programmation et les mathématiques.

Description Ceci est un simple bot programmé en Golang qui tweet une citation sur la programmation tout les jours. Ce bot est host sur le compte Twitt

Jan 1, 2022
Discord-bot - A Discord bot with golang

JS discord bots Install Clone repo git clone https://github.com/fu-js/discord-bo

Aug 2, 2022
Bot - Telegram Music Bot in Go

Telegram Music Bot in Go An example bot using gotgcalls. Setup Install the serve

Jun 28, 2022
Pro-bot - A telegram bot to play around with the community telegram channels

pro-bot ?? Pro Bot A Telegram Bot to Play Around With The Community Telegram Cha

Jan 24, 2022
Slack-emoji-bot - This Slack bot will post the newly created custom Slack emojis to the channel of your choice

Slack Emoji Bot This Slack bot will post the newly created custom Slack emojis t

Oct 21, 2022
Sex-bot - The sex bot and its uncreative responses
Sex-bot - The sex bot and its uncreative responses

Sex Bot The sex bot, made with golang! The sex bot can't hear the word "sexo" he

Nov 11, 2022
Feline-bot - Feline Bot for Discord using Golang

Feline Bot for Discord Development This bot is implemented using Golang. Feature

Feb 10, 2022