@@ -27,22 +27,6 @@ def get_command_help(self) -> list[discord.Embed]:
2727 """Get paginated help embeds for this cog"""
2828 pages = []
2929
30- # Text Commands Page
31- text_embed = discord .Embed (
32- title = "🎲 Fun Commands - Text Transformations" ,
33- color = discord .Color .blue ()
34- )
35- text_commands = ['spongebob' , 'tinytext' , 'reverse' , 'owoify' , 'emojify' ]
36- for cmd_name in text_commands :
37- cmd = self .bot .get_command (cmd_name )
38- if cmd :
39- text_embed .add_field (
40- name = f"{ cmd .name } { cmd .signature } " ,
41- value = cmd .help or "No description" ,
42- inline = False
43- )
44- pages .append (text_embed )
45-
4630 # Game Commands Page
4731 games_embed = discord .Embed (
4832 title = "🎲 Fun Commands - Games" ,
@@ -93,15 +77,6 @@ def get_command_help(self) -> list[discord.Embed]:
9377
9478 return pages
9579
96- # Text transformation commands
97- @commands .command (aliases = ['mock' ])
98- async def spongebob (self , ctx , * , text ):
99- """mOcK sOmE tExT lIkE tHiS"""
100- if len (text ) > 500 :
101- return await ctx .reply ("```text too long (max 500 chars)```" )
102- result = '' .join ([char .upper () if i % 2 == 0 else char .lower () for i , char in enumerate (text )])
103- await ctx .reply (f"```{ result } ```" )
104-
10580 @commands .command (aliases = ['choose' , 'random' ])
10681 async def pick (self , ctx , * options ):
10782 """pick a random option from your list
@@ -116,66 +91,6 @@ async def pick(self, ctx, *options):
11691 chosen = random .choice (options )
11792 await ctx .reply (f"🎲 ```i choose: { chosen } ```" )
11893
119- @commands .command (aliases = ['smallcaps' , 'tiny' ])
120- async def tinytext (self , ctx , * , text : str ):
121- """convert to ᵗⁱⁿʸ ˢᵘᵖᵉʳˢᶜʳⁱᵖᵗ"""
122- if len (text ) > 200 :
123- return await ctx .reply ("```text too long (max 200 chars)```" )
124-
125- mapping = str .maketrans (
126- 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ,
127- 'ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖᵠʳˢᵗᵘᵛʷˣʸᶻᴬᴮᶜᴰᴱᶠᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᵠᴿˢᵀᵁⱽᵂˣʸᶻ'
128- )
129- result = text .translate (mapping )
130- await ctx .reply (f"```{ result } ```" )
131-
132- @commands .command (aliases = ['textflip' , 'tf' ])
133- async def reverse (self , ctx , * , text : str ):
134- """ʇxǝʇ ruoy esreveɹ"""
135- if len (text ) > 500 :
136- return await ctx .reply ("```text too long (max 500 chars)```" )
137- await ctx .reply (f"```{ text [::- 1 ]} ```" )
138-
139- @commands .command (aliases = ['owo' , 'uwu' ])
140- async def owoify (self , ctx , * , text : str ):
141- """uwu-ify youw text owo *nuzzles*"""
142- if len (text ) > 500 :
143- return await ctx .reply ("```text too long (max 500 chars)```" )
144-
145- replacements = {
146- 'r' : 'w' , 'l' : 'w' , 'R' : 'W' , 'L' : 'W' ,
147- 'no' : 'nyo' , 'No' : 'Nyo' , 'NO' : 'NYO' ,
148- 'ove' : 'uv' , 'th' : 'f' , 'TH' : 'F' ,
149- '!' : '! uwu' , '?' : '? owo'
150- }
151-
152- for k , v in replacements .items ():
153- text = text .replace (k , v )
154-
155- # Add random uwu expressions
156- if random .random () < 0.3 :
157- text += random .choice ([' uwu' , ' owo' , ' >w<' , ' ^w^' ])
158-
159- await ctx .reply (f"```{ text } ```" )
160-
161- @commands .command (aliases = ['letters' ])
162- async def emojify (self , ctx , * , text : str ):
163- """turn text into 🔤 regional 🔤 indicators"""
164- if len (text ) > 100 :
165- return await ctx .reply ("```text too long (max 100 chars)```" )
166-
167- emoji_map = {
168- 'a' : '🇦' , 'b' : '🇧' , 'c' : '🇨' , 'd' : '🇩' , 'e' : '🇪' , 'f' : '🇫' ,
169- 'g' : '🇬' , 'h' : '🇭' , 'i' : '🇮' , 'j' : '🇯' , 'k' : '🇰' , 'l' : '🇱' ,
170- 'm' : '🇲' , 'n' : '🇳' , 'o' : '🇴' , 'p' : '🇵' , 'q' : '🇶' , 'r' : '🇷' ,
171- 's' : '🇸' , 't' : '🇹' , 'u' : '🇺' , 'v' : '🇻' , 'w' : '🇼' , 'x' : '🇽' ,
172- 'y' : '🇾' , 'z' : '🇿' , '0' : '0️⃣' , '1' : '1️⃣' , '2' : '2️⃣' , '3' : '3️⃣' ,
173- '4' : '4️⃣' , '5' : '5️⃣' , '6' : '6️⃣' , '7' : '7️⃣' , '8' : '8️⃣' , '9' : '9️⃣' ,
174- '!' : '❗' , '?' : '❓' , ' ' : ' '
175- }
176-
177- result = '' .join ([emoji_map .get (c .lower (), c ) for c in text ])
178- await ctx .reply (result )
17994
18095 # Magic 8-ball with more responses
18196 @commands .command (aliases = ['8ball' , 'magic8ball' ])
@@ -513,18 +428,6 @@ async def fireworks(self, ctx):
513428
514429 await msg .edit (content = "🎉 ```celebration complete! 🎉```" )
515430
516- # Utility commands
517- @commands .command ()
518- async def tableflip (self , ctx ):
519- """(╯°□°)╯︵ ┻━┻"""
520- reactions = [
521- "(╯°□°)╯︵ ┻━┻" ,
522- "┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻" ,
523- "ಠ_ಠ ... ┬─┬ノ( º _ ºノ)" ,
524- "(ノಥ益ಥ)ノ ┻━┻"
525- ]
526- await ctx .reply (f"```{ random .choice (reactions )} ```" )
527-
528431 @commands .command (aliases = ['password' , 'pwd' ])
529432 async def genpass (self , ctx , length : int = 12 ):
530433 """generate a random secure password"""
@@ -564,16 +467,10 @@ async def cooldown(self, ctx):
564467
565468 await ctx .reply (embed = embed )
566469
567- # Error handling for missing arguments
568- @spongebob .error
569- @tinytext .error
570- @reverse .error
571- @owoify .error
572- @emojify .error
573470 @ball8 .error
574471 async def text_command_error (self , ctx , error ):
575472 if isinstance (error , commands .MissingRequiredArgument ):
576- await ctx .reply ("```please provide some text to transform ```" )
473+ await ctx .reply ("```please provide some text to predict ```" )
577474
578475 @lovecalc .error
579476 @hack .error
0 commit comments