A Rocket.Chat bot that randomly reads conversations to send annoying memes.
Edit config/setting.yaml
to configure project.
rocket_chat
url
- URL of your Rocket Chat siteuser_name
- Username of bot to send messages, could be a normal userpassword
- Password of above user
chat_bot
display_name
- Name of chatbot display in Rocket Chatavatar_url
- Avatar image URL of chatbot display in Rocket Chattarget_channels
- List of channels name to monitor and send messages
google_search
url
- URL of Google Custom Search JSON API, would be one of the following:https://www.googleapis.com/customsearch/v1
for normal APIhttps://www.googleapis.com/customsearch/v1/siterestrict
for restricted API
cx
- Programmable Search Engine ID, see document here for more informationapi_key
- API key of application, see document here for more information
chat_bot
alternative_rules
- Replace messages to alternativevalue
to search meme if messages containkey
pattern_matching
- Reply messagevalue
to target if messages contain patternkey
watch_dog
time_interval_sec
- Interval time of monitoring channel messagestime_limit_sec
- Service life, end service if reach time limit
go build cmd/annoying-doge/main.go
# Linux or macOS
./main
# Windows
main.exe
WIP