main function encapsulation

This commit is contained in:
2025-03-09 06:19:53 +11:00
parent 1235a9bed8
commit ee63c30ae6

View File

@@ -148,4 +148,8 @@ async def on_message(message):
logger.info(f"Posted link for {i}")
return
def main():
bot.run(TOKEN)
if __name__ == '__main__':
main()