Share your repls and programming experiences

← Back to all posts
Repl.it Discord Bot
h
amasad (3537)

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

Comments
hotnewtop
Jingexz01 (1)

How can i fork this post?

[deleted]

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

rafaelcastrocouto (52)

This helped me a lot, thanks @amasad

MohammadZ (2)

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

amasad (3537)

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

MohammadZ (2)

https://storage.googleapis.com/replit/images/1528742909611_560cdf1da125bf5767af1744a3bb50a9.pn

https://storage.googleapis.com/replit/images/1528742913635_271e8dfb96ce1565875cc95be3ada70c.pn
https://storage.googleapis.com/replit/images/1528742918696_271e8dfb96ce1565875cc95be3ada70c.pn

can u fix

plz

: (

amasad (3537)

@MohammadZ What's this from? Please explain

chenleo_ (0)

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

amasad (3537)

@chenleo: yes fork it and change the token please

DylanM1 (0)

@user23802991: what you use for commands

amasad (3537)

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

Lamby777 (57)

Discord integration is revolutionary...

amasad (3537)

@lamby777: are you in our server?

Lamby777 (57)

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

aa2252920 (10)

@Lamby777 use vpn or use the officiall test discord link —> ptb.discord.com or use —> canary.discord.com ! They Are official! From discord project

JoshDaBosh (82)

Perhaps you should hide the token?

amasad (3537)

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

t_games (2)

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

Shinyy (7)

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