rafaelbarbosa / pepe-as-a-service

Discord bot to reply with "Pepe the Frog" images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pepe as a Service

Build Status Code Quality Pepe Approved

Installation

Before anything else, install the dependencies:

yarn install

or for those who prefer npm:

npm install

Configuration

After installing the dependencies, it's time for a quick configuration.

Create a .env file in the project root.

cp .env_example .env

Add and replace values where needed:

#
# Discord bot token
#
BOT_TOKEN=<the bot token you are going to use>

#
# The channel to where generic messages (Hello/Goodbye) should be sent
#
MAIN_CHANNEL_ID=<the id of the Discord channel you want to use>

#
# Time (in seconds) the bot should ignore requests from users
#
MSG_THROTTLE_TIME=30

#
# The number of retries before sending a direct message to insistent users
#
MSG_RETRY_THRESHOLD=3

Running

If you went through the previous steps successfully you should now be able to run Pepe as a Service™ with the following command:

node src/app.js

You should see an output similar to this:

READY :: Pepe-As-A-Service started @ 2019-2-27 21:27:00

That's it!

About

Discord bot to reply with "Pepe the Frog" images

License:MIT License


Languages

Language:JavaScript 100.0%