feat(forums): introduced the forums cog
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-01 19:37:50 -04:00
parent 672a60da40
commit 2eb4b738be
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8
4 changed files with 37 additions and 0 deletions

5
forums/__init__.py Normal file
View file

@ -0,0 +1,5 @@
from .forums import Forums
async def setup(bot):
await bot.add_cog(Forums(bot))

24
forums/forums.py Normal file
View file

@ -0,0 +1,24 @@
import discord
from redbot.core import Config, checks, commands
from redbot.core.app_commands import Choice
class Forums(commands.Cog):
"""Custom cog intended for use on the Galaxy discord server.
Developed by SeaswimmerTheFsh."""
def __init__(self, bot):
self.bot = bot
self.config = Config.get_conf(self, identifier=2352711325)
self.config.register_guild(
request_roles = []
)
async def resolved(self, ctx: commands.Context):
"""Marks a thread as resolved."""
channel = ctx.channel
if not isinstance(channel, discord.Thread):
await ctx.message.add_reaction("")
return
else:
await ctx.message.add_reaction("")

8
forums/info.json Normal file
View file

@ -0,0 +1,8 @@
{
"author" : ["SeaswimmerTheFsh"],
"install_msg" : "Thank you for installing Forums!\nYou can find the source code of this cog here: https://git.seaswimmer.cc/SeaswimmerTheFsh/GalaxyCogs",
"name" : "Forums",
"short" : "Custom cog intended for use on the Galaxy discord server.",
"description" : "Custom cog intended for use on the Galaxy discord server.",
"end_user_data_statement" : "This cog does not store any End User Data."
}

View file