1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
1
5
from ._baseclass import BaseCmds , commands , config , common
2
6
7
+ if TYPE_CHECKING :
8
+ from ..fred import Bot
9
+
3
10
4
11
class BotCmds (BaseCmds ):
5
12
@@ -34,6 +41,11 @@ async def set_latest_info(self, ctx: commands.Context, latest_info: str):
34
41
config .Misc .change ("latest_info" , latest_info )
35
42
await self .bot .reply_to_msg (ctx .message , "The latest info message has been changed!" )
36
43
44
+ @BaseCmds .get .command (name = "welcome" )
45
+ async def get_welcome (self , ctx : commands .Context ):
46
+ bot : Bot = ctx .bot
47
+ await bot .Welcome .send_welcome_message (ctx .author )
48
+
37
49
@commands .check (common .mod_only )
38
50
@BaseCmds .set .command (name = "main_guild" )
39
51
async def set_main_guild (self , ctx : commands .Context , guild_id : int = None ):
@@ -56,10 +68,11 @@ async def prefix(self, ctx: commands.Context, *, prefix: str):
56
68
await self .bot .reply_to_msg (ctx .message , f"Prefix changed to { prefix } ." )
57
69
58
70
@BaseCmds .set .command (name = "owo" )
71
+ @commands .check (common .mod_only )
59
72
async def owo (self , ctx : commands .Context ):
60
73
"""Usage: `set owo`
61
74
Purpose: toggle owo
62
- Notes: owo what's this? you need to be engineer or above to use this"""
75
+ Notes: owo what's this? you need to be a mod to use this :3 """
63
76
self .bot .owo = not self .bot .owo
64
77
await ctx .reply ("OwO" if self .bot .owo else "no owo :(" )
65
78
0 commit comments