mirror of
https://github.com/Nick80835/microbot
synced 2025-09-03 07:55:52 +00:00
fix a stupid ass mistake
This commit is contained in:
@@ -188,10 +188,10 @@ async def gelbooru_buttons_callback(event):
|
|||||||
buttons = []
|
buttons = []
|
||||||
|
|
||||||
if this_dict[0] > 0:
|
if this_dict[0] > 0:
|
||||||
buttons += [Button.inline('⬅️', f'dan*{dict_id}*l')]
|
buttons += [Button.inline('⬅️', f'gel*{dict_id}*l')]
|
||||||
|
|
||||||
if len(this_dict[1]) - 1 > this_dict[0]:
|
if len(this_dict[1]) - 1 > this_dict[0]:
|
||||||
buttons += [Button.inline('➡️', f'dan*{dict_id}*r')]
|
buttons += [Button.inline('➡️', f'gel*{dict_id}*r')]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await event.edit(
|
await event.edit(
|
||||||
|
@@ -175,10 +175,10 @@ async def sankaku_buttons_callback(event):
|
|||||||
buttons = []
|
buttons = []
|
||||||
|
|
||||||
if this_dict[0] > 0:
|
if this_dict[0] > 0:
|
||||||
buttons += [Button.inline('⬅️', f'dan*{dict_id}*l')]
|
buttons += [Button.inline('⬅️', f'san*{dict_id}*l')]
|
||||||
|
|
||||||
if len(this_dict[1]) - 1 > this_dict[0]:
|
if len(this_dict[1]) - 1 > this_dict[0]:
|
||||||
buttons += [Button.inline('➡️', f'dan*{dict_id}*r')]
|
buttons += [Button.inline('➡️', f'san*{dict_id}*r')]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await event.edit(
|
await event.edit(
|
||||||
|
Reference in New Issue
Block a user