Skip to content

Latest commit

 

History

History

DiscordBotTemplate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

A Discord Bot template

Requirements:

  • Python3
  • pip
  • Pycord

Not required but useful

  • dotenv

Getting started

You will need to create a bot using the discord developer portal you will also need to pip install both pycord

I would recommend getting dotenv and saing your token in that file, however it is not necessary if you plan to keep the bot running on your local machine only and do not plan to upload it to github.

once you have created your bot you can under OAuth2 you can select the permissions your bot needs and get the link to invite the bot to a server. once done go to the Bot tab and copy your Token. You will place this in a .env file. eg: Token = ygawiushjfgblfkhkjbn this is to keep the token safe if you plan on uploading it to your own github repository. Otherwise you can place it directly inside the main.py file.

Now you can create any further commands you would like and enjoy your very own customisable discord bot.