Oops token leak

Don't use leaked token. It doesn't work anyway.
This commit is contained in:
Helloyunho 2020-10-23 00:55:42 +09:00
parent ca7d143ddc
commit d091201ead
4 changed files with 6 additions and 28 deletions

3
.gitignore vendored
View File

@ -106,3 +106,6 @@ dist
# Used ESLint for linting so block package-lock
package-lock.json
yarn.lock
# PRIVACY XDDDD
src/test/config.ts

View File

@ -0,0 +1 @@
const TOKEN = ''

View File

@ -1,8 +1,7 @@
import { Client } from '../models/client.ts'
import { GatewayIntents } from '../types/gatewayTypes.ts'
import { TOKEN } from './config.ts'
const bot = new Client()
bot.connect('NDMzMjc2NDAyOTM1MjY3MzI4.WszOGA.KlnMe_LImd1DxcurGvj_x0HOEmc', [
GatewayIntents.GUILD_MESSAGES
])
bot.connect(TOKEN, [GatewayIntents.GUILD_MESSAGES])

View File

@ -1,25 +0,0 @@
// How to run:
// deno run --allow-net=echo.websocket.org https://deno.land/posts/whats-new-in-deno-1-4/websocket.js
// Start the connection to the WebSocket server at echo.websocket.org
const ws = new WebSocket('ws://echo.websocket.org/')
// Register event listeners for the open, close, and message events
ws.onopen = () => {
console.log('WebSocket ready!')
// Send a message over the WebSocket to the server
ws.send('Hello World!')
}
ws.onmessage = message => {
// Log the message we recieve:
console.log('Received data:', message.data)
}
ws.onclose = () => console.log('WebSocket closed!')
ws.onerror = err => console.log('WebSocket error:', err)
// When running this the following is logged to the console:
//
// WebSocket ready!
// Received data: Hello World!
// WebSocket closed!