/futebot

Simple discord bot

Primary LanguagePython

Futebot

Discord CircleCI codecov

Simple Discord Bot

Installation

Export a discord bot token and run:

$ docker build . -t futebot:latest

$ docker run -it -e DISCORD_APP_TOKEN=${DISCORD_APP_TOKEN} -e GOOGLE_CUSTOM_SEARCH_API_TOKEN=${GOOGLE_CUSTOM_SEARCH_API_TOKEN} -e GOOGLE_CUSTOM_SEARCH_API_ID=${GOOGLE_CUSTOM_SEARCH_API_ID} -e COMMANDS_DATA_FILE=${COMMANDS_DATA_FILE} -e OPENWEATHER_KEY=${OPENWEATHER_KEY} -e CLARIFAI_API_KEY=${CLARIFAI_API_KEY} --name futebot futebot:latest

Or

docker-compose up --build

The step above expects a file keys.env in the root directory with the following variables:

CLARIFAI_API_KEY=<CLARIFAI_API_KEY>
DISCORD_APP_TOKEN=<HUETOKEN>
GOOGLE_CUSTOM_SEARCH_API_TOKEN=<HUEAPITOKEN>
GOOGLE_CUSTOM_SEARCH_API_ID=<HUEAPIID>
COMMANDS_DATA_FILE=<COMMANDS_DATA_FILE>
IMGUR_CLIENT_ID=<CLIENTID>
IMGUR_CLIENT_SECRET=<CLIENTSECRET>
OPENWEATHER_KEY=<OPENWEATHER_KEY>
BOT_ENV=dev

Testing

To run tests run:

pytest