Discord.py-Bot-Template - Discord Bot Template with Python 3.x

Overview

Discord Bot Template with Python 3.x

This is a template for creating a custom Discord.py bot on repl.it. Make sure you read all of the comments as they contain vital information on how to get the bot up and running.

No Commands.ext

Warning, this does not use the Discord Python commands extension. I have never liked using it for my Discord bots, so I did not include it in this template.

Excessive Comments

I added a ton of comments to this so that the viewer might be able to decipher what I put down into this code. It's a compilation of all of the start up stuff I have learned over the years of amaking bots.

Repl.it Database Support

I also linked repl.it's built-in database because most of my bots use it. By default when the bot joins the server, it will automatically add a key, the guild id, with a value of "prefix": "z/". If you want to disable all this, simply delete anything that has to do with db.

How To Set-Up

If you do not want to read the messy comments in the code, here is a step-by-step tutorial on how to set it up below.

Creating the Bot

  • Go to the Discord Bot Dev Portal and sign in.
  • From there, go to applications
  • Create a New Application
  • Under General Information, you can change the bots bio under description.
  • Click on Bot, here you can change the Username and Profile Picture
  • Copy the bot's Token
  • Ensure you check which intents your bot will need. If you don't check them all, make sure you change the Intents in the code.

Adding the Code

  • Go to repl.it and log-in or create an account
  • Go to this link and fork the repl. This is the template here.
  • Open your repl. Click the left sidebar lock icon.
  • Create a new secret, name this TOKEN with a value of the copied bot token from earlier.
  • Overview the code to hopefully understand it.

Making it Run

  • Go to UptimeRobot and sign-in / create an account
  • Add a New Monitor
  • Select the HTTP(S) monitor type.
  • Add a name to easily find it
  • Make the Monitoring Interval anything less than 60 minutes.

Inviting the Bot

  • Go to your application in the Discord Bot Dev Portal
  • Go to OAuth2, then URL Generator
  • Select the checkbox, bot.
  • Add the permissions your bot will need. If you are just testing, feel free to give it Administrator.
  • Copy the link and paste it into your browser to invite the bot.
  • Select your server and approve.

If done correctly, your bot should now run. Test it out by using my built-in z/ping commands. The bot should return the message pong.

You might also like...
Discord bot script for sending multiple media files to a discord channel according to discord limitations.

Discord Bulk Image Sending Bot Send bulk images to Discord channel. This is a bot script that will allow you to send multiple images to Discord channe

A template / demo bot for the Halcyon matrix bot library
A template / demo bot for the Halcyon matrix bot library

Halcyon stock bot Hello! This is an example / template bot using the halcyon matrix bot library. Feel free to ask questions in the matrix chat #halcyo

An Open-Source Discord bot created to provide basic functionality which should be in every discord guild. We use this same bot with additional configurations for our guilds.

A Discord bot completely written to be taken from the source and built according to your own custom needs. This bot supports some core features and is

Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single bot.

Discord ToolBox Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single b

Linky bot, A open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

LinkyBot Linky bot, An open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

Image-Bot-Discord - This Is a discord bot that shows the specific image you search from Google
Image-Bot-Discord - This Is a discord bot that shows the specific image you search from Google

Advanced Discord.py Image Bot CREDITS Made by RLX and Mathiscool README by Milrato Installation Guide in .env Adjust the TOKEN python main.py to start

Example-bot-discord - Example bot discord xD

example-python-bot-discord Clone this repository Grab a token on Discord's devel

YouTube-Discord-Bot - Discord Bot to Search YouTube
YouTube-Discord-Bot - Discord Bot to Search YouTube

YouTube Bot Info YouTube Bot is a discord bot where you can search for anything

SongLink Discord Bot - Discord bot to share music links easily

SongLink_Discord_Bot Discord bot to share music links easily. Take a link from y

Releases(v1.0.1)
Owner
Keagan Landfried
Computer Science Student, Bot and Game Developer.
Keagan Landfried
Pincer-bot-template - A template for a Discord bot created using the Pincer library

Pincer Discord Bot Template (Python) WARNING: Pincer is still in its alpha/plann

binds 2 Mar 17, 2022
A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py)

Articuno (discord-interactions) A small and fun Discord Bot that is written in Python and discord-interactions (with discord.py) Get started If you wa

Blue 8 Dec 26, 2022
A template that everyone can use for the start of their discord bot

Python Discord Bot Template This repository is a template that everyone can use for the start of their discord bot. When I first started creating my d

null 2 Nov 1, 2021
My personal template for a discord bot, including an asynchronous database and colored logging :)

My personal template for a discord bot, including an asynchronous database and colored logging :)

Timothy Pidashev 9 Dec 24, 2022
A discord bot with information and template tracking for pxls.space.

pyCharity A discord bot with information and template tracking for pxls.space. Inspired by Mikarific's Charity bot. Try out the beta version on your s

null 1 Dec 3, 2021
A clean, easy to scale discord bot template

A clean, easy to scale discord bot template. Develope using nextcord library and can be use with any other discord.py forked library.

めがねこ 3 Mar 3, 2022
Discord bot template.py

discord_bot_template.py A minimal and open-source discord.py boilerplate for kick-starting bot projects. I spend a lot of time developing bots for dif

Tarran Prior 1 Feb 24, 2022
A discord.py bot template with Cogs implemented.

discord-cogs-template A discord.py bot template with Cogs implemented. Instructions Before you start ⚠ Basic knowledge of python is required. Steps If

censor 2 Sep 2, 2022
A discord.py bot template with easy deployment through Github Actions

discord.py bot template A discord.py bot template with easy deployment through Github Actions. You can use this template to just run a Python instance

Thomas Van Iseghem 1 Feb 9, 2022
It's a Discord bot to control your PC using your Discord Channel or using Reco: Discord PC Remote Controller App.

Reco PC Server Reco PC Server is a cross platform PC Controller Discord Bot which is a modified and improved version of Chimera for Reco-Discord PC Re

Arvinth Krishna 12 Aug 31, 2022