Spaces:
Sleeping
Sleeping
iamgojoof6eyes
commited on
Commit
·
725787c
1
Parent(s):
3925c05
Looks good
Browse files- Powers/plugins/info.py +11 -7
Powers/plugins/info.py
CHANGED
@@ -138,7 +138,8 @@ async def info_func(c: Gojo, message: Message):
|
|
138 |
await message.reply_text(text="I can't info fecth of nothing!")
|
139 |
await message.stop_propagation()
|
140 |
elif len(message.text.split()) > 2 and not message.reply_to_message:
|
141 |
-
await message.reply_text("You are not providing proper arguments
|
|
|
142 |
|
143 |
try:
|
144 |
user, _ , _= extract_user(c , message)
|
@@ -171,16 +172,19 @@ async def info_func(c: Gojo, message: Message):
|
|
171 |
|
172 |
@Gojo.on_message(command("chinfo"))
|
173 |
async def chat_info_func(_, message: Message):
|
|
|
174 |
try:
|
175 |
-
if len(
|
|
|
|
|
|
|
176 |
return await message.reply_text(
|
177 |
"**Usage:**/chinfo [USERNAME|ID]"
|
178 |
)
|
179 |
-
|
180 |
-
|
181 |
-
chat =
|
182 |
-
|
183 |
-
chat = message.text.split(None, 1)[1]
|
184 |
|
185 |
m = await message.reply_text(f"Fetching chat info of chat {chat}.....")
|
186 |
|
|
|
138 |
await message.reply_text(text="I can't info fecth of nothing!")
|
139 |
await message.stop_propagation()
|
140 |
elif len(message.text.split()) > 2 and not message.reply_to_message:
|
141 |
+
await message.reply_text("You are not providing proper arguments.......**Usage:**/info [USERNAME|ID]")
|
142 |
+
await message.stop_propagation()
|
143 |
|
144 |
try:
|
145 |
user, _ , _= extract_user(c , message)
|
|
|
172 |
|
173 |
@Gojo.on_message(command("chinfo"))
|
174 |
async def chat_info_func(_, message: Message):
|
175 |
+
splited = message.text.split()
|
176 |
try:
|
177 |
+
if len(splited) == 1:
|
178 |
+
return message.reply_text("I can't fetch nothing......")
|
179 |
+
|
180 |
+
elif len(splited) > 2:
|
181 |
return await message.reply_text(
|
182 |
"**Usage:**/chinfo [USERNAME|ID]"
|
183 |
)
|
184 |
+
|
185 |
+
else:
|
186 |
+
chat = splited[1]
|
187 |
+
|
|
|
188 |
|
189 |
m = await message.reply_text(f"Fetching chat info of chat {chat}.....")
|
190 |
|