2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 14:38:04 +00:00

fix a stupid ass mistake

This commit is contained in:
Nick80835
2020-06-23 12:06:49 -04:00
parent f4bf998d90
commit e8aad3bb44
2 changed files with 4 additions and 4 deletions

View File

@@ -188,10 +188,10 @@ async def gelbooru_buttons_callback(event):
buttons = []
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]:
buttons += [Button.inline('➡️', f'dan*{dict_id}*r')]
buttons += [Button.inline('➡️', f'gel*{dict_id}*r')]
try:
await event.edit(

View File

@@ -175,10 +175,10 @@ async def sankaku_buttons_callback(event):
buttons = []
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]:
buttons += [Button.inline('➡️', f'dan*{dict_id}*r')]
buttons += [Button.inline('➡️', f'san*{dict_id}*r')]
try:
await event.edit(