Skip to content

Commit b297d76

Browse files
authored
Update README.md
1 parent 13ba36f commit b297d76

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ client.run('You Bot-Token here')
6868
---------------------------------------------------------------
6969

7070
```py
71+
# Another command where a small embed is sent where you can move the small white ⬜ with the buttons.
72+
7173
pointers = []
7274

7375

@@ -79,7 +81,7 @@ class Pointer:
7981

8082
@property
8183
def possition_x(self):
82-
return self._possition_x
84+
return _possition_x
8385

8486
def set_x(self, x: int):
8587
self._possition_x += x
@@ -143,9 +145,9 @@ def arrow_button():
143145
async def start_game(ctx: commands.Context):
144146
pointer: Pointer = get_pointer(ctx.guild)
145147
await ctx.send(embed=discord.Embed(title="Little Game",
146-
description=self.display(x=0, y=0)),
147-
components=[discord.ActionRow(self.empty_button, self.arrow_button.set_label('').set_custom_id('up'), self.empty_button),
148-
discord.ActionRow(self.arrow_button.set_label('').set_custom_id('left').disable_if(pointer.possition_x <= 0), self.arrow_button.set_label('').set_custom_id('down').disable_if(pointer.possition_y <= 0), self.arrow_button.set_label('').set_custom_id('right'))
148+
description=display(x=0, y=0)),
149+
components=[discord.ActionRow(empty_button, arrow_button.set_label('').set_custom_id('up'), empty_button),
150+
discord.ActionRow(arrow_button.set_label('').set_custom_id('left').disable_if(pointer.possition_x <= 0), arrow_button.set_label('').set_custom_id('down').disable_if(pointer.possition_y <= 0), arrow_button.set_label('').set_custom_id('right'))
149151
]
150152
)
151153

0 commit comments

Comments
 (0)