thesaurize

module
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: AGPL-3.0

README

Thesaurize

A fun bot for Discord inspired by OrionSuperman's ThesaurizeThis Reddit bot. Given a sentence, it replaces each word with a synonym of that word.

Usage

You will need a Discord bot account and its corresponding token in order to proceed. There are good tutorials on how to do this elsewhere like this one.

Using Kubernetes

This is the recommended method for deploying this application. Clone this repository and run the commands found below. Make sure to do them in the following order.

  1. First, add the namespace.
$ kubectl apply -f namespace.yml
  1. Create a secret with your bot token. Make sure your secret is in your clipboard.
$ cd deployments/
$ pbpaste > discord-token.txt
$ kubectl -n=thesaurize-bot create secret discord-token --from-file=./discord-token.txt && \
    rm -f discord-token.txt; pbcopy ""
  1. Next, add the volume.
$ kubectl apply -f volume.yml
  1. Create the Redis service and load data into it.
$ kubectl apply -f redis.yaml
$ kubectl apply -f loader-job.yaml -f loader-scripts.yaml
  1. Finally, run the bot.
$ kubectl apply -f thesaurize.yaml

License

MIT

Directories

Path Synopsis
cmd
bot
internal

Jump to

Keyboard shortcuts

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