GithubHelp home page GithubHelp logo

teraprath / discord-stats-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 7 KB

A simple Discord User Stats Bot with Python and MySQL

Python 100.00%
discord-bot discord-py discord mysql mysql-database python python3

discord-stats-bot's Introduction

Discord Stats Bot

A Simple Discord Bot with an User Stats System (Level, EXP and Ranks) using the discord.py libary and a MySQL-Databse. It can be easily expanded with the Discord Stats Web Panel , which I also developed.

While this is easy to use, I recommend it as a base for a Discord Bot rather than a finished bot.

Image

Installation

  1. Download the source and upload it on your Linux Server.
  2. Then install the discord.py libary:
python3 -m pip install -U discord.py

If you are using Windows, then the following should be used instead:

py -3 -m pip install -U discord.py
  1. Set up your MySQL database and create a database.
  2. Go to the uploaded folder in config.py and enter your MySQL data.
# MySQL Database
host = "localhost" # Or your host
user = "root" # Or your username
password = "password" # Or your password
database = "dcstats" # Or your name

# Discord
token = ""
  1. It is also important that you provide a bot token. If you don't know how to create a bot on Discord, this video might help you.
  2. Invite your discord bot on your server
  3. Paste the Bot Token in config.py and save it
  4. And now finally start the bot with the following commands (Linux):
cd /home/your-folder/
python3 bot.py

You can modify the bot as you want.

Refine with Discord Stats Web

Download the Discord Stats Web for free and have a good visualization of the statistics with a ranking system.

Image

discord-stats-bot's People

Contributors

teraprath avatar

Stargazers

 avatar James Byford avatar Devyn Spencer avatar  avatar

Watchers

 avatar

discord-stats-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.