r/code • u/Parsley1997 • 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
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 typingbot = 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