Coder Social home page Coder Social logo

discord.py-1's Introduction

Discord.py

A discord bot with a leveling system (like mee6)

Pre-requisites

  • Knowing how to get create an app/bot via discord's developer portal.

Website: https://discord.com/developers/docs/intro

  • A MongoDB account (that's what's used as a database)

If you don't have an account then you can simply head over to this website.

Follow the following steps once you sign up for an account/sign in with your Gmail account (preferred):

  1. Name your organisation (can be anything), name your project, and select python as your preferred language.
  2. Select shared cluser on the following page.
  3. Next will be the server location, which can be anything. It's better if you leave it be. Change your cluster name to something more suitable and finish setting it up.

Once you're on the main MongoDB page. You'll have to wait for it to create a cluster. If it doesn't do that by itself then click on create a cluster and wait for it to be ready. After the cluster is ready, click connect and do the following:

  1. Enable select access from anywhere.
  2. On the next page, create a database user. You can use any username and password.
  3. Once you're done with those, click connect your application and copy the link that it gives you (the Add your connection string into your application code one)
  4. Paste it to a notepad and proceed with setting up.

On your MongoDB's main page, head over to Collections and select Add My Own Data. Name your database and the collection name.

Installation (dependencies)

Run the following commands on your terminal to install the dependencies;-

pip install discord

pip install pymongo

pip install dnspython

Next, clone the repository using git clone https://www.github.com/Sitiaro/Discord.py

Note

Once you're done with all those steps, head over to levels.py in your IDE and read the comments bc you'll have to make a few changes there to make it work.

Execution

Once you're changed those things, add the bot to your server (refer to the developer portal documentation if you don't know how to) and run the bot using-

python discord.py

Enjoy <3

Ps. You can start a discussion if you face any difficulties and I'll try getting back ASAP, thanks.

discord.py-1's People

Contributors

sitiaro avatar shiwari101 avatar

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.