bombsquad-plugin-manager/plugins/utilities/icons_keyboard.py

41 lines
1.2 KiB
Python
Raw Normal View History

# Made by your friend: Freaku
2022-09-02 17:09:35 +05:30
# • Icon Keyboard •
# Make your chats look even more cooler!
# Make sure "Always Use Internal Keyboard" is ON
# Double tap the space to change between keyboards...
# Tap bottom-left bomb button to cycle through different icons
2022-09-02 17:09:35 +05:30
# ba_meta require api 8
2022-09-02 17:09:35 +05:30
import bauiv1
import babase
from babase import charstr
list_of_icons = [i for i in babase.SpecialChar]
list_of_icons = [charstr(i) for i in list_of_icons]
list_of_icons.reverse()
2022-09-02 17:09:35 +05:30
for i in range(26 - (len(list_of_icons) % 26)):
list_of_icons.append('')
2022-09-02 17:09:35 +05:30
class IconKeyboard(babase.Keyboard if hasattr(babase, 'Keyboard') else bauiv1.Keyboard):
2022-09-02 17:09:35 +05:30
"""Keyboard go brrrrrrr"""
name = 'Icons by \ue048Freaku'
chars = [(list_of_icons[0:10]),
2023-12-16 06:48:26 +00:00
(list_of_icons[10:19]),
(list_of_icons[19:26])]
nums = ['' for i in range(26)]
pages = {
f'icon{i//26+1}': tuple(list_of_icons[i:i+26])
for i in range(26, len(list_of_icons), 26)
2023-12-16 06:48:26 +00:00
}
# ba_meta export plugin
class byFreaku(babase.Plugin):
def __init__(self):
babase.app.meta.scanresults.exports['babase.Keyboard' if hasattr(babase, 'Keyboard') else 'bauiv1.Keyboard'].append(__name__+'.IconKeyboard')