the start of the webui stuff
This commit is contained in:
parent
995bb08a0a
commit
d94163e246
6 changed files with 149 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ intents.message_content = True
|
|||
bot = commands.Bot(command_prefix='!', intents=intents)
|
||||
logger = src.logger.logger_setup()
|
||||
|
||||
|
||||
async def load_cogs(bot: commands.Bot, cog_path: str) -> None:
|
||||
for cog_file in os.listdir(cog_path):
|
||||
if cog_file[-3:] == '.py':
|
||||
|
|
@ -27,6 +26,7 @@ async def on_ready():
|
|||
await utils.delete_all_files("tmp/")
|
||||
await load_cogs(bot, 'cogs/')
|
||||
logger.info('We have logged in as {0.user}'.format(bot))
|
||||
print("Visit http://localhost:5000 to change config!")
|
||||
except:
|
||||
logger.warning(f"Error in on_ready")
|
||||
|
||||
|
|
@ -43,4 +43,4 @@ async def on_message(ctx):
|
|||
except discord.ext.commands.errors.CommandNotFound:
|
||||
logger.info("Command not found.")
|
||||
except Exception as e:
|
||||
logger.warning(f"Error processing commands: {e}")
|
||||
logger.warning(f"Error processing commands: {e}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue