https://github.com/jeremytubongbanua/countrybot
GryphHacks2022 submission - CountryBot is a discord bot that offers easy user-to-country management with some fun games and quizzes.
https://github.com/jeremytubongbanua/countrybot
Last synced: 3 months ago
JSON representation
GryphHacks2022 submission - CountryBot is a discord bot that offers easy user-to-country management with some fun games and quizzes.
- Host: GitHub
- URL: https://github.com/jeremytubongbanua/countrybot
- Owner: JeremyTubongbanua
- Created: 2022-05-21T01:16:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-21T02:42:05.000Z (about 3 years ago)
- Last Synced: 2025-01-19T02:48:22.852Z (5 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CountryBot
GryphHacks2022 submission - CountryBot is a discord bot that offers easy user-to-country management with some fun games and quizzes.
## Developer Notes
`discord.js`
1. Run `npm i discord.js` to install the discord.js npm library. (See https://discord.js.org/#/docs)
2. For slash commands, do `npm install @discordjs/builders @discordjs/rest discord-api-types` (See https://discordjs.guide/creating-your-bot/creating-commands.html#registering-commands)`package.json`
```json
"main": "index.js", // add this line so `node .` will work
````discordapp.com/developers`
Setup for bot:
1. Create an application (Eg: GryphHacks2022)
2. Create a bot (Eg: CountryBot)
3. Reset Token (might need 2FA from Google Authenticator)
4. OAuth2 URL Generator -> scopes: bot and applications.commands -> bot permissions: administrator
5. Paste the generated URL into a browser and invite it to your server`.env`
```
1. Add .env file in root folder
2. Set TOKEN=abc123 // where abc123 is your token
3. npm i dotenv
4. Initialize with require('dotenv').config()
5. Use process.env.TOKEN == abc123
```