Giter Site home page Giter Site logo

careerhack-discordbot's Introduction

Hacker-Rank-Discord-Bot

Development

  • Clone this repo
    $ git clone https://github.com/Roykesydon/HackerRank-DiscordBot.git
  • Install the Python dependencies
    $ pip install -r requirements.txt
  • Write ./config.json
  • Write .env
    • You need to apply OpenAI API and HuggingFace API token from OpenAI and HuggingFace
    • cp .env.example .env
  • Run the code
    $ python main.py
  • Look at Developer Guide for more details about how to start developing this repository.
  • Refer to Contributing Guidelines for the conventions and rules that contributors should follow.

Deployment (Docker)

  • Clone this repo
    $ git clone https://github.com/Roykesydon/HackerRank-DiscordBot.git
  • Write ./config.json
  • Write .env
    • You need to apply OpenAI API and HuggingFace API token from OpenAI and HuggingFace
    • cp .env.example .env
  • Run the code
    $ docker-compose up -d

Project Structure

.
├── README.md # introduce this project
├── assets 
│   └── logo.png
├── config.example.json
├── config.json
├── .example.env
├── .env
├── core # business logic
│   ├── commands # all coomands
│   │   ├── description.py
│   │   ├── help.py
│   │   └── upload.py
│   ├── config.py # config and language loader
│   ├── database.py # database connection
│   ├── events # all events
│   │   └── directly_chat.py
│   └── message.py # message handler
├── lang # language files
│   └── en.json
├── main.py # program entry point
└── storage # save uploaded files

how to maintain this repo

每次增修內容前請依循下列流程進行:

  1. Pull origin/develop 最新版本
    $ git pull origin develop
  2. 在 local 新增 branch 並切換
    $ git checkout -b <NEW_BRANCH_NAME>
  3. 編輯完成後進行 commit
    $ git add .
    $ git commit -m "COMMIT_MSG"
  4. 回到 develop 再次獲取 origin/develop 的最新版本、與自己的修正合併並修正出現的 conflict
    $ git checkout develop
    $ git pull
    $ git checkout <NEW_BRANCH_NAME>
    $ git rebase develop
  5. 將新 branch 的修正與 develop 合併並 push 到 Github
    $ git checkout develop
    $ git merge <NEW_BRANCH_NAME>
    $ git push

careerhack-discordbot's People

Contributors

roykesydon avatar charlieuwuuwu avatar yenjung0415 avatar botang-liao avatar

Watchers

 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.