Explorar o código

Checking to ccheckout somn else

root hai 1 ano
pai
achega
049eb0bbba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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...")