direct-discord-bot
v0.0.16
Published
Make discordjs easier for new programmers
Downloads
4
Maintainers
Readme
Easy Discord Js
Make development with disord.js v14 easier with direct-discord-bot
Authors
Installation
Install direct-discord-bot with npm js
npm install direct-discord-bot
Deployment
To deploy this project from your main index.js file use
node .
Example index.js
Here is the most basic and simple discord bot without any commands being registerd
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
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
TOKEN
CLIENT_ID
GUILD_ID