Ultroid - v0.0.4

ChangeLog - https://t.me/TheUltroid/26
This commit is contained in:
Aditya
2021-03-13 17:26:44 +05:30
committed by GitHub
parent a104e40539
commit cb317c5a72
56 changed files with 2800 additions and 631 deletions

View File

@@ -34,14 +34,14 @@ dictionary = PyDictionary()
)
async def mean(event):
evid = event.message.id
xx = await eor(event, "`Processing...`")
xx = await eor(event, get_string("com_1"))
wrd = event.text.split(" ", maxsplit=1)[1]
ok = dictionary.meaning(wrd)
try:
p = ok["Noun"]
except BaseException:
return await xx.edit("Oops! No such word found!!")
x = f"**Word** - `{wrd}`\n\n**Meanings** - \n"
x = get_string("wrd_1").format(wrd)
c = 1
for i in p:
x += f"**{c}.** `{i}`\n"
@@ -67,10 +67,10 @@ async def mean(event):
)
async def mean(event):
evid = event.message.id
xx = await eor(event, "`Processing...`")
xx = await eor(event, get_string("com_1"))
wrd = event.text.split(" ", maxsplit=1)[1]
ok = dictionary.synonym(wrd)
x = f"**Word** - `{wrd}`\n\n**Synonyms** - \n"
x = get_string("wrd_2").format(wrd)
c = 1
try:
for i in ok:
@@ -99,10 +99,10 @@ async def mean(event):
)
async def mean(event):
evid = event.message.id
xx = await eor(event, "`Processing...`")
xx = await eor(event, get_string("com_1"))
wrd = event.text.split(" ", maxsplit=1)[1]
ok = dictionary.antonym(wrd)
x = f"**Word** - `{wrd}`\n\n**Antonyms** - \n"
x = get_string("wrd_3").format(wrd)
c = 1
try:
for i in ok:
@@ -128,7 +128,7 @@ async def mean(event):
@ultroid_cmd(pattern="ud (.*)")
async def _(event):
xx = await eor(event, "`Processing...`")
xx = await eor(event, get_string("com_1"))
word = event.pattern_match.group(1)
if word is None:
return await xx.edit("`No word given!`")