This is my first discord bot. The purpose of this bot is to get a better understanding of the capabilities of JS. Another purpose is to have an auto-moderator filter through chat messages when I am offline. The bot is currently a work in progress and I am still adding new features that will be listed here when complete. The bot is currently not hosted on a server but is only available when run locally. It is not intended for public use but a brief setup is listed below if you would like to attempt to run the bot yourself.
/help
states commands to be entered by users
/hello
the bot gives a greeting message
/gif { keyword }
the bot replies with a random gif form the given keyword
/user
gives some information about the user's discord account
LanguageFilter: filters through a list of words that are banned and removes the message
- List is configurable by creating
config.json
within the root folder and definingbadWords
andbannedWords
arrays
- Use latest version of
Node.js
- Create a discord bot account and save the token
- Create tenor developer account and save the API key
- Create Riot developer account and save the API key
- Run
npm install
to install the needed packages - Rename
example-config.json
toconfig.json
- Edit values in
config.json
with your keys and phrases - Rename
.env-example
to.env
- Edit values in
.env
with your tokens - Run
npm run start
to start the bot. Console will log when specific functionality is ready to be used