Giter Site home page Giter Site logo

gurkbot's Introduction

Gurkbot

The official bot for the Gurkult โ€” an open source community with the aim of bringing people together.


Contribute

If you want to contribute, report a problem, add or suggest a new fix or feature, you can open a new issue. The issue should be accepted and discussed before starting to work on the feature. See Dev Installation to know how to start working on said feature.


Discord Setup

To get a token, go to Discord Developer Portal. Create an application and add a bot.

Dev Installation

  1. Clone the repository:
  • Traditional way: git clone https://github.com/gurkult/gurkbot.git or git clone [email protected]:gurkult/gurkbot.git.

  • Using Github CLI: gh repo clone gurkult/gurkbot.

Then navigate to the directory cd gurkbot/

  1. Create a new branch by git checkout -b <name of new local branch> main or git switch -c <name of new local branch> main. Make sure the new branch name is related to the feature or the fix you have in mind.

  2. Create a .env file with following contents:

    TOKEN = <Your token> # See Discord Setup above
    PREFIX = "!" # the prefix the bot should use, will default to "!" if this is not present
    
  3. Install poetry: pip install -U poetry and run the following:

    # This will install the development and project dependencies.
    poetry install
    
    # This will install the pre-commit hooks.
    poetry run task precommit
    
    # Optionally: run pre-commit hooks to initialize them.
    # You can start working on the feature after this.
    poetry run task lint
    
    # Run the bot
    poetry run task bot
    
  4. Lint and format your code properly using poetry run task lint, and push changes git push -u origin <name of new remote branch>

Commands to Remember

poetry run task precommit - Installs the pre-commit git hook

poetry run task format - Formats the project with black

poetry run task lint- Runs pre-commit across the project, formatting and linting files.

poetry run task bot - Runs the discord bot.

gurkbot's People

Contributors

15696 avatar akarys42 avatar aphkyle avatar arnav-2004 avatar atharv-attri avatar dependabot[bot] avatar dudebro249 avatar fisher60 avatar gustavwilliam avatar onerandomusername avatar pythontryhard avatar randomdev26 avatar rohanjnr avatar shakyamajumdar avatar shivansh-007 avatar uncomfyhalomacro avatar v1nam avatar vcokltfre avatar vivax3794 avatar vivekashok1221 avatar xithrius 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.