refactor: extract userbot to standalone repo, add as git submodule
Deploy to Server / deploy (push) Has been cancelled

userbot now lives at ssh://git@gitssh.forust.xyz:2221/forust/userbot.git
and is included in homelab as a submodule at userbot/
This commit is contained in:
2026-06-19 15:39:00 +02:00
parent 227e5fda27
commit 3c383db9a7
134 changed files with 4 additions and 15257 deletions
-100
View File
@@ -1,100 +0,0 @@
from pyrogram import Client, filters
from pyrogram.types import Message
from utils.misc import modules_help, prefix
REPLACEMENT_MAP = {
'a': 'ɐ',
'b': 'q',
'c': 'ɔ',
'd': 'p',
'e': 'ǝ',
'f': 'ɟ',
'g': 'ƃ',
'h': 'ɥ',
'i': '',
'j': 'ɾ',
'k': 'ʞ',
'l': 'l',
'm': 'ɯ',
'n': 'u',
'o': 'o',
'p': 'd',
'q': 'b',
'r': 'ɹ',
's': 's',
't': 'ʇ',
'u': 'n',
'v': 'ʌ',
'w': 'ʍ',
'x': 'x',
'y': 'ʎ',
'z': 'z',
'A': '',
'B': 'B',
'C': 'Ɔ',
'D': 'D',
'E': 'Ǝ',
'F': '',
'G': 'פ',
'H': 'H',
'I': 'I',
'J': 'ſ',
'K': 'K',
'L': '˥',
'M': 'W',
'N': 'N',
'O': 'O',
'P': 'Ԁ',
'Q': 'Q',
'R': 'R',
'S': 'S',
'T': '',
'U': '',
'V': 'Λ',
'W': 'M',
'X': 'X',
'Y': '',
'Z': 'Z',
'0': '0',
'1': 'Ɩ',
'2': '',
'3': 'Ɛ',
'4': '',
'5': 'ϛ',
'6': '9',
'7': '',
'8': '8',
'9': '6',
',': "'",
'.': '˙',
'?': '¿',
'!': '¡',
'"': ',,',
"'": ',',
'(': ')',
')': '(',
'[': ']',
']': '[',
'{': '}',
'}': '{',
'<': '>',
'>': '<',
'&': '',
'_': '',
}
@Client.on_message(filters.command('flip', prefix) & filters.me)
async def flip(client: Client, message: Message):
text = ' '.join(message.command[1:])
final_str = ''
for char in text:
new_char = REPLACEMENT_MAP.get(char, char)
final_str += new_char
if text != final_str:
await message.edit(final_str)
else:
await message.edit(text)
modules_help['fliptext'] = {'flip [amount]*': 'flip text upside down'}