9
9
from typing import get_args
10
10
11
11
import discord
12
- from discord import app_commands
12
+ from discord import app_commands , PartialEmoji
13
13
from discord .app_commands import Choice
14
14
from discord .app_commands import locale_str as _
15
15
from discord .ext import commands
23
23
from ...core .mixin import CogMixin
24
24
from ...utils .api import reddit
25
25
from ...utils .piglin import Piglin
26
+ from ...utils .ugbc import UGBC
26
27
from ._flags import FINDSEED_MODES , FindseedFlags
27
28
28
29
@@ -35,6 +36,7 @@ class Fun(commands.Cog, CogMixin):
35
36
def __init__ (self , bot ):
36
37
super ().__init__ (bot )
37
38
self .reddit = reddit .Reddit (self .bot .session )
39
+ self .ugbc = UGBC ()
38
40
39
41
@cmds .command (
40
42
name = _ ("meme" ),
@@ -457,3 +459,24 @@ def emoji(name: str):
457
459
async def lootTableSuggestion (self , inter , choice ):
458
460
rps = (("Before Nerf" , "before" ), ("After Nerfed" , "nerfed" ))
459
461
return [app_commands .Choice (name = i [0 ], value = i [1 ]) for i in rps ]
462
+
463
+ @cmds .command (
464
+ name = _ ("findblock" ),
465
+ description = _ ("findblock-desc" ),
466
+ aliases = ("fblk" ,),
467
+ hybrid = True ,
468
+ extras = dict (
469
+ example = ("findblock" , "fblk" ),
470
+ ),
471
+ )
472
+ @commands .cooldown (5 , 25 , commands .BucketType .user )
473
+ async def findblock (self , ctx ):
474
+ result = self .ugbc .randomize ()
475
+ missing = PartialEmoji .from_str ("<:missingtexture:807536928361545729>" )
476
+ e = ZEmbed (
477
+ ctx ,
478
+ title = "UGBC" ,
479
+ description = f"{ missing } ({ result .id } )" ,
480
+ colour = discord .Color .yellow (),
481
+ ).set_footer (text = "Work in Progress" )
482
+ await ctx .try_reply (embeds = [e ])
0 commit comments