https://github.com/sparksthefolf/discordjs-extend
direct-discord-bot | Make discordjs easier for new programmers
https://github.com/sparksthefolf/discordjs-extend
api command-line discord discord-bot discord-js framework
Last synced: 2 months ago
JSON representation
direct-discord-bot | Make discordjs easier for new programmers
- Host: GitHub
- URL: https://github.com/sparksthefolf/discordjs-extend
- Owner: SparksTheFolf
- License: gpl-3.0
- Created: 2022-12-23T19:19:49.000Z (over 3 years ago)
- Default Branch: Master
- Last Pushed: 2023-01-02T06:57:58.000Z (over 3 years ago)
- Last Synced: 2024-10-13T23:32:06.839Z (over 1 year ago)
- Topics: api, command-line, discord, discord-bot, discord-js, framework
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/direct-discord-bot
- Size: 2.35 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy Discord Js
Make development with disord.js v14 easier with direct-discord-bot
## Authors
- [@SparksTheFolf](https://www.github.com/SparksTheFolf)
## Installation
Install direct-discord-bot with npm js
```bash
npm install direct-discord-bot
```
## Deployment
To deploy this project from your main index.js file use
```bash
node .
```
## Example index.js
Here is the most basic and simple discord bot without any commands being registerd
```javascript
const {createClient, showClientInfo, setPresence} = require('direct-discord-bot')
const path = require('node:path');
const client = createClient(process.env.TOKEN, ['Guilds', 'GuildMessages']);
client.on('ready', () => {
showClientInfo(client.user.tag, client.guilds.cache.size, client.users.cache.size);
setPresence(client, 'online', 'WATCHING', 'Direct Discord Bots');
handleCommands(client, path.join(__dirname, 'commands'));
registerSlashGlobal(process.env.TOKEN, process.env.CLIENT_ID, path.join(__dirname, 'commands'));
});
```
## Documentation
[Documentation](https://wuffs.net/discordbot)
## Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`TOKEN`
`CLIENT_ID`
`GUILD_ID`
## License
[MIT](https://choosealicense.com/licenses/mit/)