Преглед изворни кода

Checking to ccheckout somn else

root пре 1 година
родитељ
комит
049eb0bbba
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bot/main.py

+ 1 - 1
bot/main.py

@@ -26,6 +26,7 @@ async def main():
 		)
 	except AttributeError:
 		quit()
+	tree = bot.tree
 
 	# Load extensions
 	default_extensions = [
@@ -46,7 +47,6 @@ except AttributeError:
 	quit()
 except discord.errors.LoginFailure:
 	logging.error("Invalid discord token.")
-	correct_setting("DISCORD_TOKEN")
 	quit()
 except KeyboardInterrupt:
 	logging.info("Received keyboard interrupt, exiting...")