Code Monkey home page Code Monkey logo

grace's Introduction

Grace

Grace is the official Code Society discord bot. The goal is to give our members the opportunity to participate in the development of the server's bot and contribute to a team project while also improving it.


Installation

Installing Grace is fairly simple. You can do it in three short step.

  1. Install Python and dependencies
  2. Set up your app and token
  3. Start the bot

0. Python and Dependencies

Install Python. Python 3.9 or higher is required.

We highly recommend that you set up a virtual environment to work on Grace. https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/

In the grace directory, open a terminal (Linus/MacOS) or cmd (Windows) and execute pip install -e . (recommended for development) or pip install ..

1. Set up your App and Token

If you did not already do it, create your Discord bot. Then, create a file called .env in the project directory, open it and add DISCORD_TOKEN=<Your token>. (Replace by your discord token).

Do not share that file nor the information inside with anyone.

2. Start the Bot

The last part is to execute the bot. Execute grace start -e development to start Grace in development mode. The rest of the installation should complete itself and start the bot.

If the grace command is unrecognized, be sure that you installed the bot properly.

Script Usage

  • Bot Command(s):
    • grace start : Starts the bot (ctrl+c to stop the bot)
  • Database Command(s):
    • grace db create : Creates the database and the tables
    • grace db drop : Deletes the tables and the database
    • grace db seed : Seeds the tables (Initialize the default values)
    • grace db reset : Drop, recreate and seeds the database.

All commands can take the optional -e argument with a string to define the environment.
Available environment: (production [default], development, test)

We recommend using "development" (ex. grace start -e development)


Advance configurations

For advance configurations, visit the wiki

Contribution

As mentioned in the description, we invite everyone to participate in the development of the bot. You can contribute to the project by simply opening an issue, by improving some current features or even by adding your own features. Before contributing please refer to our contribution guidelines and Code of Conduct for contributor (temporary unavailable).


Troubleshooting

If you're getting unexpected result, visit the wiki's troubleshooting page. For any other problems or questions ask us on our discord server.

grace's People

Contributors

penguinboi12 avatar soybison avatar chrisdedman avatar shadwz17 avatar maanasarora avatar lightcodeblocks avatar tervicke avatar discorddigital avatar mrnesli 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.