diff --git a/config.yml b/config.yml index c3cd9a53..8042dc14 100644 --- a/config.yml +++ b/config.yml @@ -6,7 +6,7 @@ MAX_SEARCH_RESULTS: 4 # Set the maximum search results for internet access DONT ALLOW_DM: true # Set to true to allow direct messages SMART_MENTION: true # Set to true to enable smart mention feature -MAX_HISTORY: 20 # Set the maximum message history +MAX_HISTORY: 8 # Set the maximum message history PRESENCES_CHANGE_DELAY: 10 # Please note that the Presences Change Delay is measured in seconds. It is advisable not to set it too low, as doing so may result in your bot being rate-limited by Discord AI_NSFW_CONTENT_FILTER: true # Enable NSFW AI detector to detect NSFW prompt on Imagine Command diff --git a/main.py b/main.py index d608046e..5071f4df 100644 --- a/main.py +++ b/main.py @@ -510,5 +510,5 @@ async def on_command_error(ctx, error): if update_on_start_up: from updater import update_repository update_repository() - -bot.run(TOKEN) \ No newline at end of file +if __name__ == "__main__": + bot.run(TOKEN) \ No newline at end of file