GithubHelp home page GithubHelp logo

discord-bot's Introduction

Python Bot Making

This repository is for Python Bot Making course created by Christopher Wang.

This course will teach you to create discord bot using Python and MySQL server.

Prerequisite:

  1. You need have a computer, windows, mac, etc.

  2. You should have basic concepts of programming, it's better if you programmed before

  3. Basic Python programming skills are preferred

  4. You should be able to install softwares on your machine

  5. You should have a discord account, if you don't have one, please go to https://discord.com/register to register an account.

  6. You should have a github account, whihc will be used to submit your homework, and send out class handout.

  7. Install a your preferred Python IDE, if you don't know one, you can use Pycharm.

Github Basics

  1. You need to install git on your machine, if you don't know how to install git, please got google.com to search "How to install git on ", then follow the instructions.
  2. Go to github.com to create an account
  3. Go to https://github.com/NotOrca22/discord-bot, and click on fork button on right side, it will fork a new branch to your github account.
  4. Go to your machine and open a terminal and try to run below command: git clone [email protected]:[Your github account name]/discord-bot.git
  5. Then you go to your Python IDE, open discord-bot folder.
  6. You can run git status to see what files are changed, or use IDE to do it.
  7. You also can run git diff to know what changes in each changed files, or do it in IDE
  8. Run git remote add upstream [email protected]:NotOrca22/discord-bot.git to set upstream, or run git remote set-url upstream [email protected]:NotOrca22/discord-bot.git to set your upstream to Christopher's repo
  9. You can run git add , then run git commit -m "meaningful commit message"
  10. After you committed your changes, you need to push to github by run git push origin master:master
  11. Then go to your discord-bot repo on github.com, then click on Pull requests button to create a Pull Request, After reviewed your code, it will be merged into major repo.
  12. You can run git pull upstream master to sync your repo with major repo.

How to set up .env file

Your .env file under your project should be similar to below:

TOKEN=YOUR TOKEN

HOST=localhost

USERNAME=discord_dev

PASSWORD=YOUR PASSWORD

DATABASE=discord

discord-bot's People

Contributors

seadragonwang avatar notorca22 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.