DEV Community

Discussion on: Hosting a Discord bot on Repl.it

Collapse
 
aryamaan08 profile image
Aryamaan08

Hey,
I made mine using Python and unfortunately it didn't work. I'm guessing it's because I can't see the token because it is in .env and Uptime Monitor is not the owner. I even tried it without the .env, it still didn't work can you help me?

Collapse
 
xghp3x profile image
Explox

I used Node.js for this and it works. The guy in the tutorial did the same thing. So I recommend you try to use Node.js and see how it goes

Collapse
 
aplha101 profile image
Aplha101

I used this method mine is working but where can I add more features to it?

Thread Thread
 
anmols149 profile image
AnmolS149

Well, there are two things you can do:

  1. Learn a coding language like JavaScript or Python... or
  2. use Scratch for Discord to make a bot and host it on RepL.it. You don't need any coding knowledge. You will need some basic knowledge of file and package management... Here's scratch for discord: scratch-for-discord.netlify.app

there can be some bugs with it, also you need to create a .env file to protect your bot token from hacking....

Collapse
 
mataskrivickas profile image
Force Studios - Comms Open

Unfortunately, your using Python, that is the problem. This is meant for discord.js. I would recommend going to here: dev.to/harshitojha/host-a-discord-...

It is a python version of this

Collapse
 
thediamondcg profile image
Diamond

Python isn't necessarily the language for back-end web apps. Either use Go or Node.js. Go is phenomenal for the job because it's incredibly fast, yet its size is bloated so not good for storage-sensitive applications. Luckily, servers aren't storage-sensitive which is where it's supposed to run :) On the other hand, Node.js is delightfully tiny, only as big as the text file you made to run it. The down side is that it's much slower than languages like Go.