Giter Club home page Giter Club logo

tribalbot-rewrite's Introduction

TribalBot-rewrite

Collaborative project to rebuild Tribal Bot a new. All hands accepted

Project structure

tribalbot/
    src/               => the project's logic
        bot/           => all the bot's components and setup logic
            cogs/      => all bot's cogs (extensions)
        orm/           => all database logic and interactions
            models.py  => each model represents a table. 
        controllers/   => Contains code that communicates the database with the commands
        utils/         => contains additional code like views, autocompletes and helpers
    __main__.py        => does final preparations and launches the bot

Code Style

The project uses a mixture of OOP and functional programing. The database and it's models should be fully OOP The bot's cogs are classes but commands should be designed following a functional approach.

command style

Ideally all the output of the bot should come in the form of embeds except for short ephemeral messages Embed colors should be saturated greens and oranges The terminology of the bot and its commands should reflect a tribal style

Development notes:

The code for the bot is organized into a module tribalbot The bot depends on the following environmental variables: - DATABASE_URL => the url for the database connection, must include the user and password (except sqlite) - BOT_TOKEN => the discord token for the bot

When the program starts it will look for an .env file at the project's root, you can put the environmental variables there.

Database

The program is Database "agnostic" meaning it will work with either SQLite, PostgreSQL or MySQL.

Schema

schema

Philosophy and cultural remarks

Tribe Definition

Tribe: A social division in a traditional society consisting of families or communities linked by social, economic, religious, or blood ties, with a common culture and dialect, typically having a recognized leader.

Tribes depicted throuout this bot does not belong to any particular culture around the world. Any and all similarities with real world cultures are marely accidental and coincidental.

Contributions

Please submit PRs to contribute as well as rising any issues you deem important.

Disclosure of Responsibility

TRIBAL BOT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ARISING FROM, OUT OF OR IN CONNECTION WITH THE USE OF THIS BOT.

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.