@@ -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!`")
|
||||
|
||||
Reference in New Issue
Block a user