diff --git a/announcedaily/announcedaily.py b/announcedaily/announcedaily.py index 17a1bd7..a3ad748 100644 --- a/announcedaily/announcedaily.py +++ b/announcedaily/announcedaily.py @@ -1,6 +1,7 @@ import asyncio import random from datetime import datetime, timedelta +from typing import Any import discord from redbot.core import Config, checks, commands @@ -13,8 +14,10 @@ DEFAULT_MESSAGES = [ # "Example message 2. Each message is in quotes and separated by a comma" ] +Cog: Any = getattr(commands, "Cog", object) -class AnnounceDaily: + +class AnnounceDaily(Cog): """ Send daily announcements """ diff --git a/ccrole/ccrole.py b/ccrole/ccrole.py index de32618..fee9a2a 100644 --- a/ccrole/ccrole.py +++ b/ccrole/ccrole.py @@ -1,13 +1,16 @@ import asyncio import re +from typing import Any import discord from redbot.core import Config, checks from redbot.core import commands from redbot.core.utils.chat_formatting import pagify, box +Cog: Any = getattr(commands, "Cog", object) -class CCRole: + +class CCRole(Cog): """ Custom commands Creates commands used to display text and adjust roles diff --git a/chatter/chat.py b/chatter/chat.py index 0cbd9c4..8eb25d2 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -11,9 +11,12 @@ from chatter.chatterbot import ChatBot from chatter.chatterbot.comparisons import levenshtein_distance from chatter.chatterbot.response_selection import get_first_response from chatter.chatterbot.trainers import ListTrainer +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Chatter: + +class Chatter(Cog): """ This cog trains a chatbot that will talk like members of your Guild """ diff --git a/coglint/coglint.py b/coglint/coglint.py index 8ecfebe..608db67 100644 --- a/coglint/coglint.py +++ b/coglint/coglint.py @@ -4,9 +4,12 @@ from redbot.core import Config from redbot.core import commands from redbot.core.bot import Red from redbot.core.data_manager import cog_data_path +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class CogLint: + +class CogLint(Cog): """ Automatically lint code in python codeblocks """ diff --git a/exclusiverole/exclusiverole.py b/exclusiverole/exclusiverole.py index 3ea2b54..e476854 100644 --- a/exclusiverole/exclusiverole.py +++ b/exclusiverole/exclusiverole.py @@ -2,9 +2,12 @@ import asyncio import discord from redbot.core import Config, checks, commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class ExclusiveRole: + +class ExclusiveRole(Cog): """ Custom commands Creates commands used to display text and adjust roles diff --git a/flag/flag.py b/flag/flag.py index 0670ea2..ed1511d 100644 --- a/flag/flag.py +++ b/flag/flag.py @@ -4,9 +4,12 @@ import discord from redbot.core import Config, checks, commands from redbot.core.bot import Red from redbot.core.utils.chat_formatting import pagify +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Flag: + +class Flag(Cog): """ Set expiring flags on members """ diff --git a/forcemention/forcemention.py b/forcemention/forcemention.py index 8086d7d..1d0452c 100644 --- a/forcemention/forcemention.py +++ b/forcemention/forcemention.py @@ -3,9 +3,12 @@ from discord.utils import get from redbot.core import Config, checks, commands from redbot.core.bot import Red +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class ForceMention: + +class ForceMention(Cog): """ Mention the unmentionables """ diff --git a/hangman/hangman.py b/hangman/hangman.py index 7002e8f..0ca60ee 100644 --- a/hangman/hangman.py +++ b/hangman/hangman.py @@ -4,9 +4,12 @@ from random import randint import discord from redbot.core import Config, checks, commands from redbot.core.data_manager import cog_data_path +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Hangman: + +class Hangman(Cog): """Lets anyone play a game of hangman with custom phrases""" navigate = "🔼🔽" letters = "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿" diff --git a/leaver/leaver.py b/leaver/leaver.py index a9b4a6e..a74dc24 100644 --- a/leaver/leaver.py +++ b/leaver/leaver.py @@ -2,9 +2,12 @@ import discord from redbot.core import Config, checks, commands from redbot.core.commands import Context +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Leaver: + +class Leaver(Cog): """ Creates a goodbye message when people leave """ diff --git a/lovecalculator/lovecalculator.py b/lovecalculator/lovecalculator.py index fc2ff8d..5430825 100644 --- a/lovecalculator/lovecalculator.py +++ b/lovecalculator/lovecalculator.py @@ -2,9 +2,12 @@ import aiohttp import discord from bs4 import BeautifulSoup from redbot.core import commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class LoveCalculator: + +class LoveCalculator(Cog): """Calculate the love percentage for two users!""" def __init__(self, bot): diff --git a/lseen/lseen.py b/lseen/lseen.py index e1aa76d..6f59b63 100644 --- a/lseen/lseen.py +++ b/lseen/lseen.py @@ -6,9 +6,12 @@ import discord from redbot.core import Config from redbot.core.bot import Red from redbot.core import commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class LastSeen: + +class LastSeen(Cog): """ Report when a user was last seen online """ diff --git a/planttycoon/planttycoon.py b/planttycoon/planttycoon.py index 1f8fe4a..afe8e12 100644 --- a/planttycoon/planttycoon.py +++ b/planttycoon/planttycoon.py @@ -7,9 +7,12 @@ from random import choice import discord from redbot.core import commands, Config, bank from redbot.core.bot import Red +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Gardener: + +class Gardener(Cog): """Gardener class""" def __init__(self, user: discord.User, config: Config): diff --git a/qrinvite/qrinvite.py b/qrinvite/qrinvite.py index 054abe8..bbeaeca 100644 --- a/qrinvite/qrinvite.py +++ b/qrinvite/qrinvite.py @@ -7,9 +7,12 @@ from PIL import Image from redbot.core import Config, commands from redbot.core.bot import Red from redbot.core.data_manager import cog_data_path +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class QRInvite: + +class QRInvite(Cog): """ V3 Cog Template """ diff --git a/reactrestrict/reactrestrict.py b/reactrestrict/reactrestrict.py index f1bb2c3..24133a5 100644 --- a/reactrestrict/reactrestrict.py +++ b/reactrestrict/reactrestrict.py @@ -4,6 +4,9 @@ import discord from redbot.core import Config from redbot.core import commands from redbot.core.bot import Red +from typing import Any + +Cog: Any = getattr(commands, "Cog", object) class ReactRestrictCombo: @@ -31,7 +34,7 @@ class ReactRestrictCombo: ) -class ReactRestrict: +class ReactRestrict(Cog): """ Prevent specific roles from reacting to specific messages """ diff --git a/recyclingplant/recyclingplant.py b/recyclingplant/recyclingplant.py index ce56eda..171e5de 100644 --- a/recyclingplant/recyclingplant.py +++ b/recyclingplant/recyclingplant.py @@ -5,9 +5,12 @@ import random from redbot.core import bank from redbot.core import commands from redbot.core.data_manager import cog_data_path +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class RecyclingPlant: + +class RecyclingPlant(Cog): """Apply for a job at the recycling plant!""" def __init__(self, bot): diff --git a/rpsls/rpsls.py b/rpsls/rpsls.py index 7799db5..7152cad 100644 --- a/rpsls/rpsls.py +++ b/rpsls/rpsls.py @@ -3,9 +3,12 @@ import random import discord from redbot.core import commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class RPSLS: + +class RPSLS(Cog): """Play Rock Paper Scissors Lizard Spock.""" weaknesses = { diff --git a/sayurl/sayurl.py b/sayurl/sayurl.py index 04499cd..9078bf2 100644 --- a/sayurl/sayurl.py +++ b/sayurl/sayurl.py @@ -4,6 +4,9 @@ import html2text from redbot.core import Config, commands from redbot.core.bot import Red from redbot.core.utils.chat_formatting import pagify +from typing import Any + +Cog: Any = getattr(commands, "Cog", object) async def fetch_url(session, url): @@ -13,7 +16,7 @@ async def fetch_url(session, url): return await response.text() -class SayUrl: +class SayUrl(Cog): """ V3 Cog Template """ diff --git a/scp/scp.py b/scp/scp.py index 72b7cec..1457ca1 100644 --- a/scp/scp.py +++ b/scp/scp.py @@ -1,8 +1,11 @@ import discord from redbot.core import commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class SCP: + +class SCP(Cog): """Look up SCP articles. Warning: Some of them may be too creepy or gruesome.""" def __init__(self, bot): diff --git a/stealemoji/stealemoji.py b/stealemoji/stealemoji.py index 05dd961..155d596 100644 --- a/stealemoji/stealemoji.py +++ b/stealemoji/stealemoji.py @@ -4,6 +4,9 @@ import discord from redbot.core import Config, commands from redbot.core.bot import Red +from typing import Any + +Cog: Any = getattr(commands, "Cog", object) async def fetch_img(session, url): @@ -13,7 +16,7 @@ async def fetch_img(session, url): return await response.read() -class StealEmoji: +class StealEmoji(Cog): """ This cog steals emojis and creates servers for them """ diff --git a/timerole/timerole.py b/timerole/timerole.py index 25a7c1b..9582bf6 100644 --- a/timerole/timerole.py +++ b/timerole/timerole.py @@ -5,9 +5,12 @@ import discord from redbot.core import Config, checks, commands from redbot.core.bot import Red from redbot.core.utils.chat_formatting import pagify +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Timerole: + +class Timerole(Cog): """Add roles to users based on time on server""" def __init__(self, bot: Red): diff --git a/tts/tts.py b/tts/tts.py index 00a19a4..7288a9c 100644 --- a/tts/tts.py +++ b/tts/tts.py @@ -4,9 +4,12 @@ import discord from gtts import gTTS from redbot.core import Config, commands from redbot.core.bot import Red +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class TTS: + +class TTS(Cog): """ Send Text-to-Speech messages """ diff --git a/unicode/unicode.py b/unicode/unicode.py index 4ad172a..e305ad4 100644 --- a/unicode/unicode.py +++ b/unicode/unicode.py @@ -2,9 +2,12 @@ import codecs as c import discord from redbot.core import commands +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Unicode: + +class Unicode(Cog): """Encode/Decode Unicode characters!""" def __init__(self, bot): diff --git a/werewolf/werewolf.py b/werewolf/werewolf.py index 59c18c6..1b738be 100644 --- a/werewolf/werewolf.py +++ b/werewolf/werewolf.py @@ -8,9 +8,12 @@ from redbot.core import commands from werewolf.builder import GameBuilder, role_from_name, role_from_alignment, role_from_category, role_from_id from werewolf.game import Game from redbot.core.utils.menus import menu, DEFAULT_CONTROLS +from typing import Any +Cog: Any = getattr(commands, "Cog", object) -class Werewolf: + +class Werewolf(Cog): """ Base to host werewolf on a guild """