Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ verify_ssl = true
[packages]
aiocron = "==1.8"
bidict = "==0.22.1"
black = "==23.12.1"
black = "==24.1.1"
dateparser = "1.2.0"
"discord.py" = "==2.3.2"
emoji = "==2.9.0"
Expand Down
48 changes: 24 additions & 24 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions techsupport_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def __init__(
self.guild_configs: dict[str, munch.Munch] = {}
self.extension_configs = munch.DefaultMunch(None)
self.extension_states = munch.DefaultMunch(None)
self.command_rate_limit_bans: expiringdict.ExpiringDict[
str, bool
] = expiringdict.ExpiringDict(
max_len=5000,
max_age_seconds=600,
self.command_rate_limit_bans: expiringdict.ExpiringDict[str, bool] = (
expiringdict.ExpiringDict(
max_len=5000,
max_age_seconds=600,
)
)
self.command_execute_history: dict[str, dict[int, bool]] = {}

Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/botlogging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Exported loggers.
"""
"""Exported loggers."""

from .common import LogContext, LogLevel
from .delayed import DelayedLogger
Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/botlogging/delayed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for delayed logging.
"""
"""Module for delayed logging."""

import asyncio
import os
Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/botlogging/embed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for log embeds.
"""
"""Module for log embeds."""

import datetime

Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/botlogging/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for logging bot events.
"""
"""Module for logging bot events."""

from __future__ import annotations

Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/commands/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for config commands.
"""
"""Module for config commands."""

import datetime
import io
Expand Down
4 changes: 2 additions & 2 deletions techsupport_bot/commands/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Unit tests: None
Config: embed_roles
API: None
Databases: None
Databases: None
Models: None
Subcommands: embed
Subcommands: embed
Defines: has_embed_role
"""

Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/commands/help.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for custom help commands.
"""
"""Module for custom help commands."""

from dataclasses import dataclass

Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/commands/htd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Convert a value or evalute a mathematical expression to decimal, hex, binary, and ascii encoding

"""

import discord
Expand Down
4 changes: 2 additions & 2 deletions techsupport_bot/commands/listen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Module for channel listening.
"""
"""Module for channel listening."""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/commands/rules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the rules extension of the discord bot."""

from __future__ import annotations

import datetime
Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/core/cogs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Base cogs for making extentions.
"""
"""Base cogs for making extentions."""

from __future__ import annotations

Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/core/custom_errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for command error responses.
"""
"""Module for command error responses."""

import munch
from discord import app_commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/core/extensionconfig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This represents an extension config item when building in the setup function"""

import munch


Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/core/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Defines the wrapper around HTTP calling allow true async, caching, and rate limiting
This has no commands
"""

from __future__ import annotations

import time
Expand Down
2 changes: 1 addition & 1 deletion techsupport_bot/ircrelay/irc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This is the core of the IRC bot. It connects to IRC and handles
"""This is the core of the IRC bot. It connects to IRC and handles
message tranmissions to discord"""

import asyncio
Expand Down
3 changes: 1 addition & 2 deletions techsupport_bot/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""TechSupport Bot main thread.
"""
"""TechSupport Bot main thread."""

import asyncio
import logging
Expand Down