Fix kfet command and add PyCharm to gitignore
This commit is contained in:
parent
b95ddfcdc0
commit
4cc233fcd2
2 changed files with 4 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -9,3 +9,6 @@ logs/
|
|||
edt
|
||||
edt.*
|
||||
token.ini
|
||||
|
||||
# PyCharm
|
||||
.idea/
|
||||
|
|
2
bot.py
2
bot.py
|
@ -178,7 +178,7 @@ async def kfet(message: types.Message):
|
|||
cmds = requests.get(KFET_URL).json()
|
||||
if cmds:
|
||||
for c in cmds:
|
||||
msg += markdown.code(c) + " " if cmds[c]["statut"] == "ok" else ""
|
||||
msg += markdown.code(c) + " " if cmds[c] == "ok" else ""
|
||||
await message.reply(msg, parse_mode=ParseMode.MARKDOWN)
|
||||
|
||||
|
||||
|
|
Reference in a new issue