annoying-doge-bot

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: Apache-2.0

README

Annoying Doge Bot

License

A Rocket.Chat bot that randomly reads conversations to send annoying memes.

example-1

example-2

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

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL