r/code • • Oct 10 '20

Discord bot code

Hello everyone I recently made a discord named Mikasa Bot and added it to my server but the thing is Mikasa Bot doesn’t really do anything so I was wondering if anyone on the server knows how to code discord bots and help code Mikasa bot thank you (if you do know how to do this stuff comment information you need to help code Mikasa Bot) sorry if I’m asking to much of this subreddit.

11 Upvotes

4 comments sorted by

1

u/succ_master69420 Oct 18 '20

I’d help but I don’t know how to sorry

1

u/angryrancor Boss Oct 19 '20

Hey! If you go ahead and search "discord bot" on Github, you'll find a ton of open source bots you can analyze.

Cheers!

1

u/DecstarkenOfficial Oct 09 '22

If your bot is coded in python I might be able to help you. What coding language are you coding in? IF in python, you must have a discord bot's token by going to Bot > Reset bot token, then the fungible token will be generated. After that, in the bot's code you have to type this line bot.run("the token here"). Before that, you must create a variable "bot" by typing bot = commands.Bot(command_prefix="the bot prefix here"). Make sure you have installed discord library in the terminal by typing "pip install discord==1.7.3" since the code is in discord.py 1.7.3