Skip to content

Commit

Permalink
1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
colorlesspuzzle committed Sep 30, 2024
0 parents commit 4be1c4b
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
node_modules/
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { Client, GatewayIntentBits } = require('discord.js');
require('dotenv').config();

const client = new Client({ intents: [GatewayIntentBits.Guilds] });

client.once('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});

// Utiliza el token de Discord almacenado en la variable de entorno DISCORD_TOKEN
client.login(process.env.DISCORD_TOKEN);
341 changes: 341 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencies": {
"discord.js": "^14.16.3",
"dotenv": "^16.4.5"
}
}

0 comments on commit 4be1c4b

Please sign in to comment.