forked from blizzthewolf/SeaCogs
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
a62b6d5593 |
3 changed files with 61 additions and 0 deletions
5
welcomer/__init__.py
Normal file
5
welcomer/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from .welcomer import Welcomer
|
||||||
|
|
||||||
|
|
||||||
|
async def setup(bot):
|
||||||
|
await bot.add_cog(Welcomer(bot))
|
17
welcomer/info.json
Normal file
17
welcomer/info.json
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"author" : ["SeaswimmerTheFsh (seasw.)"],
|
||||||
|
"install_msg" : "Thank you for installing Nerdify!\nYou can find the source code of this cog [here](https://coastalcommits.com/SeaswimmerTheFsh/SeaCogs). Based off of PhasecoreX's [UwU](<https://github.com/PhasecoreX/PCXCogs/tree/master/uwu>) cog.",
|
||||||
|
"name" : "Nerdify",
|
||||||
|
"short" : "Nerdify your text!",
|
||||||
|
"description" : "Nerdify your text!",
|
||||||
|
"end_user_data_statement" : "This cog does not store end user data.",
|
||||||
|
"hidden": false,
|
||||||
|
"disabled": false,
|
||||||
|
"min_bot_version": "3.5.0",
|
||||||
|
"min_python_version": [3, 8, 0],
|
||||||
|
"tags": [
|
||||||
|
"fun",
|
||||||
|
"text",
|
||||||
|
"meme"
|
||||||
|
]
|
||||||
|
}
|
39
welcomer/welcomer.py
Normal file
39
welcomer/welcomer.py
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# _____ _
|
||||||
|
# / ____| (_)
|
||||||
|
# | (___ ___ __ _ _____ ___ _ __ ___ _ __ ___ ___ _ __
|
||||||
|
# \___ \ / _ \/ _` / __\ \ /\ / / | '_ ` _ \| '_ ` _ \ / _ \ '__|
|
||||||
|
# ____) | __/ (_| \__ \\ V V /| | | | | | | | | | | | __/ |
|
||||||
|
# |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_|
|
||||||
|
|
||||||
|
|
||||||
|
from redbot.core import commands, Config
|
||||||
|
from redbot.core.utils import chat_formatting as cf
|
||||||
|
|
||||||
|
|
||||||
|
class Welcomer(commands.Cog):
|
||||||
|
"""Manage welcome messages for new members and leave messages for former members."""
|
||||||
|
|
||||||
|
__author__ = ["SeaswimmerTheFsh"]
|
||||||
|
__version__ = "0.1.0"
|
||||||
|
|
||||||
|
def __init__(self, bot):
|
||||||
|
self.bot = bot
|
||||||
|
self.config = Config.get_conf(self, identifier=1234567890, force_registration=True)
|
||||||
|
self.config.register_guild(
|
||||||
|
welcome_message=None,
|
||||||
|
leave_message=None,
|
||||||
|
channel=None,
|
||||||
|
enabled=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
def format_help_for_context(self, ctx: commands.Context) -> str:
|
||||||
|
pre_processed = super().format_help_for_context(ctx) or ""
|
||||||
|
n = "\n" if "\n\n" not in pre_processed else ""
|
||||||
|
text = [
|
||||||
|
f"{pre_processed}{n}",
|
||||||
|
f"Cog Version: **{self.__version__}**",
|
||||||
|
f"Author: {cf.humanize_list(self.__author__)}",
|
||||||
|
]
|
||||||
|
return "\n".join(text)
|
||||||
|
|
||||||
|
def placeholders(self, )
|
Loading…
Reference in a new issue