Code Monkey home page Code Monkey logo

pygamecommunitybot's Introduction

PygameCommunityBot

The Pygame Community Discord bot

The bot is capable of doing a lot of stuff, the command prefix is pg!. For help on all the bot commands, run pg!help.

The bot is licensed under the MIT license.

Contributing

Setting up the bot on test mode

  • When you get the 'sorcerer' role on the discord server, you will be given the token of the test bot.

  • You can then run the bot locally on your local setup to test the bot.

  • Make sure you have python 3.7 or above, install the deps with pip install -r requirements.txt

  • Make a .env file at the base dir (this is git-ignored), and set it like

TEST_TOKEN = "bot token goes here"
TEST_USER_ID = 1234567890 # your discord ID
  • Run the main.py file, and you should see a dev version of the bot fire up

Running the bot on your server

  • In addition to the above steps, if you want to get the bot started on your own server, you'd need to make some code changes, in the common.py file, you would either need to set the bot on "generic" mode, where the server specific features are disabled, or alternatively, rewrite ServerConstants class, but with the constants from your server. Don't forget to revert these changes when you send us a PR!

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.