mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
* friggin webpack tho
* probably important
* add all the stuff to the package.json
* add minify builds and a nice package.json script to run it all
* clean up
* use uglify harmony branch so we can actually run minify builds that work
* update build system
* make test better
* clean up
* fix issues with compression
*
* c++ requirements in a node lib? whaaaaat?
* fix travis yml?
* put railings on voice connections
* 🖕🏻
* aaaaaa
* handle arraybuffers in the unlikely event one is sent
* support arraybuffers in resolvebuffer
* this needs to be fixed at some point
* this was fixed
* disable filename versioning if env VERSIONED is set to false
* Update ClientDataResolver.js
* Update ClientVoiceManager.js
* Update WebSocketManager.js
* Update ConvertArrayBuffer.js
* Update webpack.html
* enable compression for browser and fix ws error handler
* Update WebSocketManager.js
* everything will be okay gawdl3y
* compression is slower in browser, so rip the last three hours of my life
* Update Constants.js
* Update .gitignore
31 lines
808 B
HTML
31 lines
808 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>discord.js Webpack test</title>
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript" src="../webpack/discord.10.0.1.js"></script>
|
|
<script type="text/javascript" src="auth.js"></script>
|
|
<script type="text/javascript">
|
|
(() => {
|
|
const client = window.client = new Discord.Client();
|
|
|
|
client.on('ready', () => {
|
|
console.log('[CLIENT] Ready!');
|
|
});
|
|
|
|
client.on('error', console.error);
|
|
|
|
client.ws.on('close', (event) => console.log('[CLIENT] Disconnect!', event));
|
|
|
|
client.on('message', (message) => {
|
|
console.log(message.author.username, message.author.id, message.content);
|
|
});
|
|
|
|
client.login(window.token || prompt('token', 'abcdef123456'));
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|