Merge pull request #12 from TrueXPixells/main

Code imp, removing useless code
This commit is contained in:
hackermon 2022-11-16 17:44:51 -05:00 committed by GitHub
commit e4fdbeaae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

5
app.js
View File

@ -1,7 +1,7 @@
const { createInterface } = require('node:readline'); const { createInterface } = require('node:readline');
const { execSync } = require('child_process'); const { execSync } = require('child_process');
const fetch = require('node-fetch'); const fetch = require('node-fetch');
const { Client, REST, Routes, GatewayIntentBits } = require('discord.js'); const { Client, Routes } = require('discord.js');
const client = new Client({ intents: [] }); const client = new Client({ intents: [] });
const rl = createInterface({ input: process.stdin, output: process.stdout }); const rl = createInterface({ input: process.stdin, output: process.stdout });
@ -30,8 +30,7 @@ const question = (q) => new Promise((resolve) => rl.question(q, resolve));
throw err throw err
}); });
const rest = new REST({ version: '10' }).setToken(token); await client.rest.put(Routes.applicationCommands(client.user.id), { body: [
await rest.put(Routes.applicationCommands(client.user.id), { body: [
{ {
name: 'ping', name: 'ping',
description: 'yes' description: 'yes'

2
package-lock.json generated
View File

@ -667,4 +667,4 @@
"requires": {} "requires": {}
} }
} }
} }