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
1 change: 1 addition & 0 deletions techsupport_bot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Root module for accessing TechSupportBot."""

from .bot import *
1 change: 1 addition & 0 deletions techsupport_bot/base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for providing base classes."""

from .advanced import *
from .auxiliary import *
from .cogs import *
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/base/advanced.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for defining the advanced bot methods."""

import asyncio
import datetime
import random
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/base/databases.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This file stores all of the postgres table declarations
All models can be used by any extension
"""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""The main bot functions.
"""

import asyncio
import threading

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

from .common import LogContext, LogLevel
from .delayed import DelayedLogger
from .events import EventLogger
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/botlogging/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A few common functions to help the logging system work smoothly"""

from dataclasses import dataclass
from enum import Enum
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/botlogging/embed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module for log embeds.
"""

import datetime

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/botlogging/events.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""All of the discord event listeners where they used for logging"""

import datetime
import sys
from typing import Optional, Sequence, Union
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/cogs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for providing builtin cogs."""

from .admin import *
from .config import *
from .help import *
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module for command error responses.
"""

import munch
from discord import app_commands
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Init file for the extensions
This allows importing the extensions for tests
"""

from .burn import *
from .conch import *
from .correct import *
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/autoreact.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the autoreact extension for the discord bot."""

from base import auxiliary, cogs


Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/burn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module has unit tests
This modules requires no config, no databases, and no APIs
"""

import random

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

from base import auxiliary, cogs
from discord.ext import commands

Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Subcommands: gpt, gptutil (history, clean)
Defines: None
"""

import discord
import expiringdict
import ui
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/conch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module has unit tests
This modules requires no config, no databases, and no APIs
"""

import random

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/correct.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module has unit tests
This modules requires no config, no databases, and no APIs
"""

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/duck.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the duck extension"""

import asyncio
import datetime
import functools
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/dumpdbg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the dumpdbg command on discord bot."""

import json

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Subcommands: embed
Defines: has_embed_role
"""

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/factoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
alias, dealias
Defines: has_manage_factoids_role
"""

import asyncio
import datetime
import io
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/giphy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for giphy extension in the bot."""

import ui
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/google.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the google extension for the discord bot."""

import discord
import ui
from base import auxiliary, cogs, extension
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/grab.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module for defining the grabs extension
"""

import random

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

import datetime
import uuid

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

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/hug.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the hug extention for the bot."""

import random

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/iss.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to add the location of the ISS to the bot."""

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/joke.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the joke extension for the discord bot."""

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/kanye.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the kanye extension for the discord bot."""

import asyncio
import random

Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/lenny.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to add the extension lenny to the discord bot."""

import random

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Subcommands: .lint
Defines: check_syntax
"""

import json

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

import datetime

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Subcommands: None
Defines: get_members_with_role
"""

import datetime
import io

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

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/news.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the news extension for the discord bot."""

import enum
import random

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

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

import datetime
import io
import re
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/relay.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is the discord side of the IRC->Discord relay"""

from typing import Dict, List, Union

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/role.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""The file to hold the role extension
This extension is slash commands"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/roll.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the roll extension for the discord bot."""

import random

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/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."""

import datetime
import io
import json
Expand Down
3 changes: 2 additions & 1 deletion techsupport_bot/extensions/slowmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ async def slowmode(
channel = interaction.channel
await channel.edit(slowmode_delay=seconds)
embed = auxiliary.prepare_confirm_embed(
f"Slowmode successfully modified in channel {channel.mention} to {seconds} seconds"
f"Slowmode successfully modified in channel {channel.mention} to"
f" {seconds} seconds"
)
await interaction.response.send_message(embed=embed)
1 change: 1 addition & 0 deletions techsupport_bot/extensions/spotify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the Spotify extension of the discord bot."""

import aiohttp
import ui
from base import auxiliary, cogs
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/translate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the translate extension for the discord bot."""

from base import auxiliary, cogs
from discord.ext import commands

Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/urban.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the urban dictionary extension for the discord bot."""

import discord
import ui
from base import auxiliary, cogs
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/weather.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the weather extension for the discord bot."""

import discord
import munch
from base import auxiliary, cogs
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/who.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the who extension for the discord bot."""

import datetime
import io

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

import discord
from base import auxiliary, cogs
from discord.ext import commands
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/extensions/wyr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for the wyr extension for the discord bot."""

import random

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

import random

import discord
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/ircrelay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Allows python to find the irc packages"""

from .formatting import *
from .irc import *
1 change: 1 addition & 0 deletions techsupport_bot/ircrelay/formatting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A bunch of functions to format messages going to and from IRC"""

from typing import Dict, List

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

import asyncio
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""TechSupport Bot main thread.
"""

import asyncio
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions techsupport_bot/tests/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Init file for the test helpers.
"""

from .asset import *
from .attachment import *
from .bot import *
Expand Down
1 change: 0 additions & 1 deletion techsupport_bot/tests/test_base_auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This contains 23 tests
"""


import importlib
from unittest.mock import AsyncMock, MagicMock, call

Expand Down
1 change: 0 additions & 1 deletion techsupport_bot/tests/test_extensions_emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This contains 14 tests
"""


import importlib
from unittest.mock import AsyncMock, MagicMock

Expand Down
1 change: 0 additions & 1 deletion techsupport_bot/tests/test_extensions_hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This contains 1 test
"""


import importlib
from unittest.mock import AsyncMock

Expand Down
Loading