# Discord Bot

**URL:** https://forum.infinityfree.com/t/discord-bot/39674
**Category:** Hosting Support
**Created:** [December 30, 2020, 9:22am UTC](https://forum.infinityfree.com/t/discord-bot/39674 "2020-12-30T09:22:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)
#### Post date: [December 30, 2020, 11:22am UTC](https://forum.infinityfree.com/t/discord-bot/39674/4 "2020-12-30T11:22:32Z")

</div>

> [@anon13010328](#):
>
> What I want to do is that when a user registers on my website, a script is executed that makes a discord bot send a message.

So what is the question exactly? Does the code you’ve shared work or not?

Looking at the code sample, it’s Javascript code. Please note that we don’t support running Javascript on our servers (we only support PHP), but you can of course run Javascript in the browser of your visitors.

If this code is intended to be run in the browser, then all is good.

If this code is intended to be run on the server, it won’t because we don’t support Node.js. And before you try porting the code to PHP, note that we have blocked access to the Discord API on our servers due to rampant abuse.

---

_[View the full topic](https://forum.infinityfree.com/t/discord-bot/39674)._
