Skip to content

Commit e698a10

Browse files
committed
maduthu
1 parent 4c44ff4 commit e698a10

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

main.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ async def main():
8787
LOGGER.info("Loop play enabled , starting playing startup stream.")
8888
await start_stream()
8989
except Exception as e:
90-
LOGGER.error(f"Startup was unsuccesfull, Errors - {e}", exc_info=True)
91-
LOGGER.info("Activating debug mode, you can reconfigure your bot with /env command.")
92-
Config.STARTUP_ERROR=f"Startup was unsuccesfull, Errors - {e}"
90+
if "unpack requires" in str(e):
91+
LOGGER.error("You Have to generate a new session string from the link given in README of the repo and replace the existing one with the new.")
92+
LOGGER.info("Activating debug mode, you can reconfigure your bot with /env command.")
93+
Config.STARTUP_ERROR=f"You Have to generate a new session string from the link given in README of the repo and replace the existing one with the new. \nGenerate string session from https://repl.it/@subinps/getStringName"
94+
else:
95+
LOGGER.error(f"Startup was unsuccesfull, Errors - {e}", exc_info=True)
96+
LOGGER.info("Activating debug mode, you can reconfigure your bot with /env command.")
97+
Config.STARTUP_ERROR=f"Startup was unsuccesfull, Errors - {e}"
9398
from utils import debug
9499
await bot.stop()
95100
await debug.start()

0 commit comments

Comments
 (0)