All Projects → AlexFlipnote → Discord_bot.py

AlexFlipnote / Discord_bot.py

Licence: mit
🍺 A simple discord bot that helps you getting started within discord.py

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Discord bot.py

Bot
The community bot for the Python Discord community
Stars: ✭ 460 (+46.96%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Bot
A Discord bot for all your needs. With memes, utilities, moderation & more, Fire is the only bot you'll need.
Stars: ✭ 79 (-74.76%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Community Bot
The bot used on the TypeScript Community discord server
Stars: ✭ 46 (-85.3%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Red Discordbot
A multi-function Discord bot
Stars: ✭ 2,855 (+812.14%)
Mutual labels:  bot, hacktoberfest, fun, discord
birthday.py
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
Stars: ✭ 30 (-90.42%)
Mutual labels:  fun, clean-code, clean, small
Javacord
An easy to use multithreaded library for creating Discord bots in Java.
Stars: ✭ 368 (+17.57%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Switchblade
The open source Discord bot that solves all of your problems.
Stars: ✭ 285 (-8.95%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Collaboration For Beginners
A Beginner's Guide to Contributing in an Open Source Project.
Stars: ✭ 86 (-72.52%)
Mutual labels:  hacktoberfest, tutorial, open-source, easy
Dtel
Telephone roleplay bot on Discord
Stars: ✭ 108 (-65.5%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Sir Lancebot
A Discord bot started as a community project for Hacktoberfest 2018, later evolved to an introductory project for aspiring new developers starting out with open source development.
Stars: ✭ 105 (-66.45%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Nitro
A discord bot
Stars: ✭ 56 (-82.11%)
Mutual labels:  bot, discord-bot, fun, discord
Calypsobot
A fully customizable bot built with discord.js
Stars: ✭ 131 (-58.15%)
Mutual labels:  bot, discord-bot, fun, discord
Pengubot
Official PenguBot GitHub Repository
Stars: ✭ 98 (-68.69%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Discord.js
discord.js is a powerful Node.js module that allows you to easily interact with the Discord API.
Stars: ✭ 16,432 (+5149.84%)
Mutual labels:  bot, discord-bot, hacktoberfest, discord
Loritta
💁 A multipurpose, multilanguage, customizable, modular, and very cute bot for Discord using JDA! ~Making your server more awesome~
Stars: ✭ 253 (-19.17%)
Mutual labels:  bot, discord-bot, fun, discord
Master Bot
A Discord music bot with playlist support, music quiz, saved playlists, lyrics, gifs and more
Stars: ✭ 204 (-34.82%)
Mutual labels:  bot, discord-bot, discord
Mathbot
Discord bot for mathematics
Stars: ✭ 207 (-33.87%)
Mutual labels:  bot, discord-bot, discord
Miscord
Facebook Messenger to Discord bridge
Stars: ✭ 225 (-28.12%)
Mutual labels:  bot, hacktoberfest, discord
Discord Bot Dashboard
📊 A tool for Discord.js Bot Developers to get detailed analytics of their bots and to manage them.
Stars: ✭ 182 (-41.85%)
Mutual labels:  bot, hacktoberfest, discord
Discord Twitter Bot
Posts Twitter Tweets to Discord through Webhook
Stars: ✭ 219 (-30.03%)
Mutual labels:  bot, hacktoberfest, discord

discord_bot.py

Do you need more help? Visit my server here: https://discord.gg/DpxkY3x 🍺

Requirements

Useful to always have

Keep this saved somewhere, as this is the docs to [email protected] All you need to know about the library is defined inside here, even code that I don't use in this example is here.

How to setup

  1. Make a bot here and grab the token Image_Example1

  2. Rename the file config.json.example to config.json, then fill in the required spots, such as token, prefix and game

  3. To install what you need, do pip install -r requirements.txt
    (If that doesn't work, do python -m pip install -r requirements.txt)
    NOTE: Use pip install with Administrator/sudo

  4. Start the bot by having the cmd/terminal inside the bot folder and type python index.py

  5. You're done, enjoy your bot!

FAQ

Q: I don't see my bot on my server!
A: Invite it by using this URL: https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot
Remember to replace CLIENT_ID with your bot client ID

Q: There aren't that many commands here...
A: Yes, I will only provide a few commands to get you started, maybe adding more later.

Q: Why the beer with the discord logo?
A: Because the framework is made so simple that even a drunk guy can set it up.

Optional tools

Flake8

Flake8 is a tool that helps you keep your code clean. Most coding softwares will have a plugin that supports this Python module so it can be integrated with your IDE. To install it, simply do pip install flake8. If you're using python 3.7, install by doing pip install -e git+https://gitlab.com/pycqa/flake8#egg=flake8

PM2

PM2 is an alternative script provided by NodeJS, which will reboot your bot whenever it crashes and keep it up with a nice status. You can install it by doing npm install -g pm2 and you should be done. Keep in mind that this PM2 file is made to work on my own Linux instance, you might need to change the interpreter value.

# Start the bot
pm2 start pm2.json

# Tips on common commands
pm2 <command> [name]
  start discord_bot.py    Run the bot again if it's offline
  list                    Get a full list of all available services
  stop discord_bot.py     Stop the bot
  reboot discord_bot.py   Reboot the bot

Docker

Docker is an alternative to run the bot 24/7 and always reboot again whenever it crashed. You can find the install manual here. You don't have to get it, but if you're used to having Docker, it's available at least.

# Build and run the Dockerfile
docker-compose up -d --build

# Tips on common commands
docker-compose <command>
  ps      Check if bot is online or not (list)
  down    Shut down the bot
  reboot  Reboot the bot without shutting it down or rebuilding
  logs    Check the logs made by the bot.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].