Oops token leak
Don't use leaked token. It doesn't work anyway.
This commit is contained in:
		
							parent
							
								
									ca7d143ddc
								
							
						
					
					
						commit
						d091201ead
					
				
					 4 changed files with 6 additions and 28 deletions
				
			
		
							
								
								
									
										3
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -106,3 +106,6 @@ dist | |||
| # Used ESLint for linting so block package-lock | ||||
| package-lock.json | ||||
| yarn.lock | ||||
| 
 | ||||
| # PRIVACY XDDDD | ||||
| src/test/config.ts | ||||
|  |  | |||
							
								
								
									
										1
									
								
								src/test/config.ts.sample
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/test/config.ts.sample
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| const TOKEN = '' | ||||
|  | @ -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]) | ||||
|  |  | |||
|  | @ -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!
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue