Skip to content

redgoldlace/crimsoBOT

 
 

Repository files navigation

crimsoBOT

crimsoBOT is a playful and somewhat poorly-coded Discord bot.

Installing

# first-run steps
poetry install
cp config.example.py config.py
# edit config.py in your favorite editor
poetry run python3 cli.py initdb

poetry run bot

Contributing

A few tests are run whenever a PR is opened, and running these yourself locally can save you from having to make additional commits in the event that the tests fail because of silly mistakes. Flake8 will check for general code style issues, while mypy will run type checks.

To run flake8:

poetry run flake8

It's not too different for mypy:

poetry run mypy

If you're working on a PR, there's a good chance that the topic of "where the hell do I put this" will come up. Here's a project something-map just for that!

crimsoBOT
└── crimsobot
    ├── cogs
    │
    │   This directory contains crimsoBOT's cogs. These are essentially "modules" for a discord.py bot,
    │   and are used to group commands and functionality. This is where most command implementations go.
    │
    ├── data
    │
    │   This directory contains.. data. Text, image and yaml files that the bot pulls from can be found here.
    │
    ├── extensions
    │
    │   This directory contains crimsoBOT's extensions. "Extensions" in this case are discord.py extensions,
    │   which allow more arbitrary python scripts to interact with the bot. Seldom used.
    │
    ├── handlers
    │
    │   This directory contains all the "handlers" that the bot uses to process messages and reactions for
    │   various games, such as Cringo! and madlibs. Note that handlers should be implemented as
    │   AbstractEventGatherer subclasses.
    │
    ├── models
    │
    │   This directory contains all of the Tortoise ORM database models that crimsoBOT uses.
    │
    ├── utils
    │
    │   This directory contains crimsoBOT's utility functions. Commands will call on functionality
    │   from this directory very often. Generally, code that will be reused often (or is bulky) should make its
    │   way here.
    │
    ├── cli.py
    │
    │   This is crimsoBOT's launcher script. Instantiation of crimsoBOT is handled here.
    │
    └── ##

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%