Discord Bot Python Starter
Discord Bot Python Starter
72
2.1K
templates
templates
Template
Published on Sep 8, 2021Forked from Dart/Discord Bot template

Add your Discord token to secrets to get started.

Repls using this template
More templates
Python
Languages
Python
A dynamic language emphasizing readability.
replit
replit
61comments
to comment
SomeChild
SomeChild4 months ago

So any commands after the first one is ignored so how do I add more?

Dart
Dart4 months ago

Hey just a quick PSA from the guy that made this template: THIS WILL NOT WORK IF YOU JUST RUN IT, you need to make a bot from the discord developer portal and put the TOKEN in a secret in a FORK of this repl, stop commenting that this template “doesn’t work” or “has errors” because if it does your either messed something up or you are doing it wrong! I tested this quite a few times before i submitted it so i know for a fact it works! Please stop commenting that its broken if you don’t know what you’re doing!

KCWPI
KCWPI6 months ago

gg tysm, although it does have a few errors, reading through this gave me a better understanding of discord bots code. Thanks! :)

6 months ago

Errors

Apreiswerk
Apreiswerk6 months ago

errors errors errorsbut idea is nice it is normal to do errors

EthanNguyen48
EthanNguyen486 months ago

uh i think for this to work you need to make a bot set its perms get the token and put in in the code

Johnathan2191
Johnathan21917 months ago

too many errors

khalilgemers
khalilgemers7 months ago

what a nice comments lol

MenHub
MenHub7 months ago

this is trash

Sreedeepta
Sreedeepta7 months ago

first of all you just have a 10+ mistakes!

elipie
elipie7 months ago

bro you have to put ur discord bot token, how stupid can people be? Don't just run it and expect a fully working discord bot.

Janaki2011
Janaki20117 months ago

fck it you as b*tch

ThatkidSavir
ThatkidSavir8 months ago

bad so many errors

RASHIDMOHAMMED
RASHIDMOHAMMED8 months ago

20

StickLoad
StickLoad9 months ago

i got hacked by this

Jet1234
Jet12349 months ago

i don't use phyton but ik that a kick command doesn't have one fucking line of code

sysdl132
sysdl1329 months ago

Traceback (most recent call last): File "main.py", line 31, in client.run(os.getenv("TOKEN")) #get your bot token and make a file called ".env" then inside the file write TOKEN=put your api key here example in env.txt File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 718, in run return future.result() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 697, in runner await self.start(args, **kwargs) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 660, in start await self.login(args, bot=bot) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 509, in login await self.http.static_login(token.strip(), bot=bot)AttributeError: 'NoneType' object has no attribute 'strip'

so what's this?

BomyBoxy
BomyBoxy10 months ago

it was ass

DSAJagat20
DSAJagat2010 months ago

there are so many errors. fix it.

Anonymouse29
Anonymouse2910 months ago

Traceback (most recent call last): File "main.py", line 31, in client.run(os.getenv("TOKEN")) #get your bot token and make a file called ".env" then inside the file write TOKEN=put your api key here example in env.txt File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 718, in run return future.result() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 697, in runner await self.start(args, **kwargs) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 660, in start await self.login(args, bot=bot) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 509, in login await self.http.static_login(token.strip(), bot=bot)AttributeError: 'NoneType' object has no attribute 'strip'

11 months ago

oop- teres an erro says "Traceback (most recent call last): File "main.py", line 31, in client.run(os.getenv("TOKEN")) #get your bot token and make a file called ".env" then inside the file write TOKEN=put your api key here example in env.txt File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 718, in run return future.result() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 697, in runner await self.start(args, **kwargs) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 660, in start await self.login(args, bot=bot) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 509, in login await self.http.static_login(token.strip(), bot=bot)AttributeError: 'NoneType' object has no attribute 'strip'KeyboardInterrupt

11 months ago

fatso

vcszanelien
vcszanelien11 months ago

great

Smoked
Smoked11 months ago

dont work

SavannahBevins
SavannahBevins11 months ago

ty

derkbug
derkbug12 months ago

ok