ocm-emotive-discord-bot

command module
v0.0.0-...-681c59b Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 9 Imported by: 0

README

Emotive

Emotive is a discord bot written in Go made for OCM Discord that can tell you the most interesting messages in a channel. These are based on the following criteria:

  • Number of reactions
  • Message length (TODO)
  • Categories (TODO)

Installation

Using task

task build

or using simple bash

go build -o bin/emotive main.go handlers.go
Note:

Be sure to set your Discord bot's token and your discord guild id in your environment variables

export DISCORD_TOKEN=ABCD1234TOKEN
export DISCORD_GUILD_ID=ABCD1234GUILDID

Run

$ bin/emotive

Usage

Run this command in a channel, and expect the bot to DM you the results.

!bestposts <args (TODO) >

TODOs

  • Get the top messages by category e.g. !bestposts funny !bestposts reactions
  • Define number of posts to retrieve !bestposts top 25

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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