-
Notifications
You must be signed in to change notification settings - Fork 5
/
fonts.py
103 lines (85 loc) · 4.01 KB
/
fonts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Added more fonts by @legendx22
# Ported from saitama i guess
from telethon import events
from ULTRA.utils import admin_cmd, edit_or_reply
normiefont = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
weebyfont = ['卂','乃','匚','刀','乇','下','厶','卄','工','丁','长','乚','从','𠘨','口','尸','㔿','尺','丂','丅','凵','リ','山','乂','丫','乙']
tantextfont = ['Ꭿ','Ᏸ','Ꮳ','Ꮄ','Ꮛ','Ꮄ','Ꮆ','Ꮒ','i','Ꮰ','Ꮶ','l','m','Ꮑ','Ꮻ','Ꮅ','Ꮔ','ᖇ','Ꭶ','Ꮏ','Ꮜ','Ꮙ','Ꮿ','メ','Ꭹ','Ꮓ']
linetextfont = ['𝔸','𝔹','ℂ','𝔻','𝔼','𝔽','𝔾','ℍ','𝕀','𝕁','𝕂','𝕃','𝕄','ℕ','𝕆','ℙ','ℚ','ℝ','𝕊','𝕋','𝕌','𝕍','𝕎','𝕏','𝕐','ℤ']
boxtextfont = ['🄰','🄱','🄲','🄳','🄴','🄵','🄶','🄷','🄸','🄹','🄺','🄻','🄼','🄽','🄾','🄿','🅀','🅁','🅂','🅃','🅄','🅅','🅆','🅇','🅈','🅉']
bubbletextfont = ['Ⓐ','Ⓑ','Ⓒ','Ⓓ','Ⓔ','Ⓕ','Ⓖ','Ⓗ','Ⓘ','Ⓙ','Ⓚ','Ⓛ','Ⓜ','Ⓝ','Ⓞ','Ⓟ','Ⓠ','Ⓡ','Ⓢ','Ⓣ','Ⓤ','Ⓥ','Ⓦ','Ⓧ','Ⓨ','Ⓩ']
@borg.on(admin_cmd(pattern="weeb ?(.*)"))
async def weebify(event):
args = event.pattern_match.group(1)
if not args:
get = await event.get_reply_message()
args = get.text
if not args:
await event.edit("`What I am Supposed to Weebify U Dumb`")
return
string = ''.join(args).lower()
for normiecharacter in string:
if normiecharacter in normiefont:
weebycharacter = weebyfont[normiefont.index(normiecharacter)]
string = string.replace(normiecharacter, weebycharacter)
await event.edit(string)
@borg.on(admin_cmd(pattern="tantext ?(.*)"))
async def tantxt(event):
args = event.pattern_match.group(1)
if not args:
get = await event.get_reply_message()
args = get.text
if not args:
await event.edit("`What I am Supposed to tanify U Dumb`")
return
string = ''.join(args).lower()
for normiecharacter in string:
if normiecharacter in normiefont:
tanycharacter = tantextfont[normiefont.index(normiecharacter)]
string = string.replace(normiecharacter, tanycharacter)
await event.edit(string)
@borg.on(admin_cmd(pattern="linetext ?(.*)"))
async def linetxt(event):
args = event.pattern_match.group(1)
if not args:
get = await event.get_reply_message()
args = get.text
if not args:
await event.edit("`What I am Supposed to linefy U Dumb`")
return
string = ''.join(args).lower()
for normiecharacter in string:
if normiecharacter in normiefont:
linecharacter = linetextfont[normiefont.index(normiecharacter)]
string = string.replace(normiecharacter, linecharacter)
await event.edit(string)
@borg.on(admin_cmd(pattern="boxtext ?(.*)"))
async def boxtxt(event):
args = event.pattern_match.group(1)
if not args:
get = await event.get_reply_message()
args = get.text
if not args:
await event.edit("`What I am Supposed to boxify U Dumb`")
return
string = ''.join(args).lower()
for normiecharacter in string:
if normiecharacter in normiefont:
boxcharacter = boxtextfont[normiefont.index(normiecharacter)]
string = string.replace(normiecharacter, boxcharacter)
await event.edit(string)
@borg.on(admin_cmd(pattern="bubbletext ?(.*)"))
async def bubbletxt(event):
args = event.pattern_match.group(1)
if not args:
get = await event.get_reply_message()
args = get.text
if not args:
await event.edit("`What I am Supposed to bubblify U Dumb`")
return
string = ''.join(args).lower()
for normiecharacter in string:
if normiecharacter in normiefont:
bubblecharacter = bubbletextfont[normiefont.index(normiecharacter)]
string = string.replace(normiecharacter, bubblecharacter)
await event.edit(string)