1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-03 00:53:12 +00:00
Tux is an all in one bot for the All Things Linux discord server.
Find a file
kzndotsh 1a8c4a4801 docs(ban.py, kick.py, purge.py, report.py): add docstrings to methods for better code understanding
refactor(purge.py): remove unused imports and methods, use EmbedCreator for creating embeds
refactor(report.py): rename ConfirmModal to ReportModal for better semantics
feat(purge.py): add error handling for non-text channels and invalid number of messages
feat(report.py): add docstring to report method, improve report submission process

docs(slowmode.py, timeout.py, unban.py): add docstrings to methods for better code readability and understanding
refactor(slowmode.py): change default slowmode delay from 5 to 4 seconds for better user experience
style(slowmode.py, timeout.py, unban.py): add line breaks for better code readability
fix(unban.py): remove redundant logging of unban command usage, logging is now handled after successful unbanning

docs(warn.py): add docstrings to methods for better code readability and understanding
refactor(warn.py): remove error handling from create_infraction method to improve separation of concerns
2024-05-01 04:12:07 +00:00
.archive feat(ctx_error_handler.py): add new error handler for command context 2024-05-01 04:10:58 +00:00
.github chore(deps): update dependency ubuntu to v22 2024-04-11 20:27:15 +00:00
config update purge.py 2024-04-01 17:20:22 -05:00
docs style(README.md): replace CRLF line endings with LF for better cross-platform compatibility 2024-04-11 19:24:07 +00:00
infra chore(structure) move tmp to .archive + create infra dir 2024-04-11 18:10:01 -04:00
prisma [Commands] add reminders 2024-04-22 10:57:15 -05:00
tux docs(ban.py, kick.py, purge.py, report.py): add docstrings to methods for better code understanding 2024-05-01 04:12:07 +00:00
.editorconfig feat: add .editorconfig for consistent coding style across different editors 2024-04-11 20:22:47 +00:00
.env.example feat(.env.example): add new environment variables for Github and reorganize the file for better readability 2024-04-28 20:49:12 +00:00
.gitignore chore(.gitignore): add github-private-key.pem to .gitignore to prevent accidental commit of private keys 2024-04-18 07:04:39 +00:00
.mise.toml feat: add .editorconfig for consistent coding style across different editors 2024-04-11 20:22:47 +00:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2024-04-22 20:04:04 +00:00
LICENSE.md [Fix] Embed.py and constants.py 2024-01-15 01:35:40 -05:00
mypy.ini chore(mypy.ini): update Python version from 3.11 to 3.12 2024-04-11 21:56:29 +00:00
poetry.lock fix(deps): update dependency sentry-sdk to v2 2024-04-25 16:42:18 +00:00
pyproject.toml feat(.env.example): add new environment variables for Github and reorganize the file for better readability 2024-04-28 20:49:12 +00:00
README.md docs: add CODE_OF_CONDUCT.md to establish community guidelines and expectations 2024-04-11 19:31:02 +00:00
renovate.json Add renovate.json 2024-04-11 20:02:04 +00:00

Tux

A Discord bot for the All Things Linux Discord server

About

Tux is a Discord bot for the All Things Linux Discord server. It is designed to provide a variety of features to the server, including moderation, support, utility, and various fun commands. The bot is written in Python using the discord.py library.

Installation

Prerequisites

Steps

  1. Clone the repository

    git clone https://github.com/allthingslinux/tux && cd tux
    
  2. Install the dependencies

    poetry install
    
  3. Activate the virtual environment

    poetry shell
    
  4. Install the pre-commit hooks

    pre-commit install
    
  5. Generate the prisma client

    prisma generate
    
  6. Copy the .env.example file to .env and fill in the required values

    cp .env.example .env
    
  7. Run {prefix}sync <server id> in the server to sync the slash command tree.

  8. Review all useful CLI commands by visiting the useful CLI commands file.

License

This project is licensed under the terms of the The Unlicense license. See the LICENSE file for details.