muhammedfurkan / TelethonUserBot

Unassigned string statement PYL-W0105
Anti-pattern
Minor
3 years ago3 years old
String statement has no effect
377async def mute_chat(mute_e):
378    from userbot.database.mongo import cli
379    cli = cli["Userbot"]["mute_chat"]
380    """ For .mutechat command, mute any chat. """381    await mute_e.edit(str(mute_e.chat_id))
382    cli.insert_one({"chat_id": mute_e.chat_id})
383    user = await get_user_from_id(mute_e.sender_id, mute_e)
String statement has no effect
 11from userbot import bot
 12from userbot.util import admin_cmd
 13
 14"""Type `.count` and see Magic.""" 15
 16
 17@bot.on(admin_cmd(pattern='count'))
String statement has no effect
 42        await event.edit("Uploaded to {} in {} seconds.".format(media_urls[0], ms))
 43    else:
 44        await event.edit("Reply to a message to get a permanent telegra.ph link. (Inspired by @ControllerBot)")
 45""" The below lines copied from https://github.com/python273/telegraph/blob/master/telegraph/upload.py 46"""
 47
 48
String statement has no effect
116    hours = math.floor(minutes_remaining / 60)
117    minutes = math.floor(minutes_remaining % 60)
118
119    """ - Current - """120    App = result['apps']
121    try:
122        App[0]['quota_used']
String statement has no effect
268        await dyno.respond(
269            "`[HEROKU]`\n"
270            f"Build: ⬢**{build.app.name}**  `Stopped...`")
271        """ - Restart main if builds cancelled - """272        try:
273            app.dynos()[0].restart()
274        except IndexError: