Skip to content
← Back to Community
Repl.it Discord Bot
Profile icon
h
has Hacker Plan
amasad

UPDATE: Use this template it's a much better discord bot template than the ones below: https://repl.it/@templates/Discordpy-bot-template-with-commands-extension


https://repl.it/@amasad/discord-bot-example

It started from just trying out discord.py but people on the Repl.it discord (https://repl.it/discord) loved it so we made it better. Join discord and check it out :D

Edit: I made it into a server so that it stays up: https://repl.it/@amasad/discord-bot-server

Voters
Profile icon
BiratBhattacha1
Profile icon
HectorBernabe
Profile icon
DominicFraser
Profile icon
PatrickNeagu
Profile icon
lolbuildpvp
Profile icon
NOOBTHUG
Profile icon
XLGamer1
Profile icon
nsbouchal
Profile icon
MRFLIMFLAM2022
Profile icon
NilluDev
Comments
hotnewtop
Profile icon
Jingexz01

How can i fork this post?

Profile icon
amasad
Profile icon
[deleted]

@amasad wdym by "For your url, put the url of the website made for your repl."

Profile icon
DINOTICK

The URL that pops up when you run the project.

Profile icon
Rudrakshchaudhr

,help

Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
ViniciusVenzon
Profile icon
Angel-Eduardo25
Profile icon
JoaoPedroPed104
Profile icon
BoBtheBoB69

Whenever I try to add the .env file it doesn’t let me. Please help :D

Profile icon
rafaelcastrocouto

This helped me a lot, thanks @amasad

Profile icon
88albert6

hry

Profile icon
MohammadZ

This file cannot be displayed: https://storage.googleapis.com/replit/images/1555356405800_be991a6fc5474fb502e2398f67b60c37.pn

I try to run your program, however it is coming up with the note above could you please fix this issue thanks

Profile icon
amasad

@MohammadZ Hey -- you need to fork it and then put your secrets in .env https://repl.it/site/docs/repls/secret-keys

Profile icon
MohammadZ

This file cannot be displayed: https://storage.googleapis.com/replit/images/1528742909611_560cdf1da125bf5767af1744a3bb50a9.pn

This file cannot be displayed: https://storage.googleapis.com/replit/images/1528742913635_271e8dfb96ce1565875cc95be3ada70c.pn
This file cannot be displayed: https://storage.googleapis.com/replit/images/1528742918696_271e8dfb96ce1565875cc95be3ada70c.pn

can u fix

plz

: (

Profile icon
amasad

@MohammadZ What's this from? Please explain

Profile icon
chenleo_

Hi amasad! Can I try it on my server? That'll be real cool!

Profile icon
amasad

@chenleo: yes fork it and change the token please

Profile icon
RafaelSousa17

ahha

Profile icon
richtan

cool

Profile icon
LoganFerreri1

what is the prefix

Profile icon
amasad

@loganferreri1: what's that,?

Profile icon
DylanM1

@user23802991: what you use for commands

Profile icon
amasad

@dylanm1: if statements ¯_(ツ)_/¯

Profile icon
Beasta

yoo

Profile icon
DexieTheSheep

Discord integration is revolutionary...

Profile icon
amasad

@lamby777: are you in our server?

Profile icon
DexieTheSheep

@user23802991: School WiFi blocks discord but I will be soon... :)

Profile icon
JoshDaBosh

Perhaps you should hide the token?

Profile icon
notbehind_you

^ this

Profile icon
amasad

@notbehindyou: repl.it team is working on a secrets environment variables file

Profile icon
amasad

done

Profile icon
t_games

When I try it just gives me an error at the last line

Profile icon
Shinyy

Not bad! I'll see if I can join the server soon.

Profile icon
Itz_splash

Nice token