discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.34k stars 3.97k forks source link

Browser? #76

Closed Matthew2D closed 8 years ago

Matthew2D commented 8 years ago

How do you get this in the browser like the website?

amishshah commented 8 years ago

In the repo there is a folder called web dists, it has js files containing a browserified discord.js.

Matthew2D commented 8 years ago

Can you give me your HTML file?

abalabahaha commented 8 years ago

@Matthew2D https://github.com/hydrabolt/discord.js/blob/gh-pages/browser.html

Matthew2D commented 8 years ago

Thanks! Not exactly easy to get to.

abalabahaha commented 8 years ago

The website itself is on Github Pages (*.github.io). The way Github Pages works, all the website source files are in the gh-pages branch. Now you know :P

Matthew2D commented 8 years ago

Yeah I never knew that.

Matthew2D commented 8 years ago

Wait the bot works uploading it to through the FTP right? I dont have to have a program running in the background in a VPN or anything?

I could just upload these files (https://github.com/hydrabolt/discord.js/tree/gh-pages) and it will work?

amishshah commented 8 years ago

Should do, the bot will stay running as long as the user viewing the page keeps it open.

On Mon, 30 Nov 2015 11:35 pm Matthew Hawley notifications@github.com wrote:

Wait the bot works uploading it to through the FTP right? I dont have to have a program running in the background in a VPN or anything?

I could just upload these files ( https://github.com/hydrabolt/discord.js/tree/gh-pages) and it will work?

— Reply to this email directly or view it on GitHub https://github.com/hydrabolt/discord.js/issues/76#issuecomment-160798724 .

maxh65000 commented 7 years ago

The dists folder is no longer there. How can I do this now?

devsnek commented 7 years ago

@maxh65000 all our webpack builds are available here: https://github.com/hydrabolt/discord.js/tree/webpack

EntropicBlackhole commented 1 year ago

Henlo, where would you end up having them now? I know it has been 8 years since this has been opened, but it would be very useful knowing

Jiralite commented 1 year ago

Discord no longer supports running Discord bots in a browser. You can ask further questions in the Discord server.

This issue will be locked as the question is resolved and the topic is now unsupported (and this is from aeons ago).