https://github.com/qgisk/jokebot
Discord and using the JokeAPI
https://github.com/qgisk/jokebot
bot discord humour joke
Last synced: 3 months ago
JSON representation
Discord and using the JokeAPI
- Host: GitHub
- URL: https://github.com/qgisk/jokebot
- Owner: QGIsK
- License: mit
- Created: 2021-10-10T13:58:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T18:38:33.000Z (over 4 years ago)
- Last Synced: 2025-07-20T14:02:29.761Z (12 months ago)
- Topics: bot, discord, humour, joke
- Language: JavaScript
- Homepage: https://jokeapi.dev
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.MD
- License: LICENSE
Awesome Lists containing this project
README
# JokeBOT
## • Information
Currently only a discord bot, will most likely add a telegram bot next time im bored.
Hosted on heroku with worker.
MongoDB database on MongoCloud
## • Hosted version
Click [here](https://discord.com/oauth2/authorize?client_id=896816739336196208&permissions=0&scope=bot%20applications.commands) to invite the bot to your server
## • Local version installation
### • Prerequisites
```bash
NodeJS > 16.0.0
NPM > 7.4.0
Local MongoDB
```
For the discord tokens Please follow [this tutorial](https://discordjs.guide/preparations/setting-up-a-bot-application.html).
### • Configuration
```bash
cp .env-example .env
```
or
```bash
copy the .env-example and rename the file to .env
```
Paste your tokens/id in the newly created .env file
Don't forget your mongodb url and server(discord guild) id
Replace the `````` in the discord invite link with your bot's id.
## • Using the bot
### • Register Commands
```bash
node deployCommands.js
```
### • Starting the bot
```bash
npm start
```
or ( This requires you to install nodemon) ```npm -i -g nodemon```
```bash
npm run dev
```