module
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Feb 16, 2021
License: Apache-2.0
Opens a new window with license information.
README
¶
Annoying Doge Bot
A Rocket.Chat bot that randomly reads conversations to send annoying memes.
Getting Started
Configuration
Edit config/setting.yaml
to configure project.
Required
rocket_chat
url
- URL of your Rocket Chat site
user_name
- Username of bot to send messages, could be a normal user
password
- Password of above user
chat_bot
display_name
- Name of chatbot display in Rocket Chat
avatar_url
- Avatar image URL of chatbot display in Rocket Chat
target_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 API
https://www.googleapis.com/customsearch/v1/siterestrict
for restricted API
cx
- Programmable Search Engine ID, see document here for more information
api_key
- API key of application, see document here for more information
Optional
chat_bot
alternative_rules
- Replace messages to alternative value
to search meme if messages contain key
pattern_matching
- Reply message value
to target if messages contain pattern key
watch_dog
time_interval_sec
- Interval time of monitoring channel messages
time_limit_sec
- Service life, end service if reach time limit
Starting service
go build cmd/annoying-doge/main.go
# Linux or macOS
./main
# Windows
main.exe
Features
WIP
Directories
¶
cmd
|
|
|
|
internal
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.