From fdac7b8befa522ece06e9cdf4b19b1d443ca5b93 Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Wed, 10 Apr 2024 19:03:53 +0800 Subject: [PATCH] Update env example --- .env.example | 8 ++++---- cogs/plugins.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 58ca3be0b0..ca840b495a 100644 --- a/.env.example +++ b/.env.example @@ -11,10 +11,10 @@ GUILD_ID=123456 OWNERS=123456,123456 # Connection URI for your mongodb -CONNECTION_URI=mongod+srv://mongo.net +CONNECTION_URI=mongodb+srv://mongo.net # The url of logviewer for viewing self-hosted logs -# LOG_URL=https://logviewername.domain.com/ +# LOG_URL=https://logviewer.example.com/ # The path to your log viewer extending from your `LOG_URL`, defaults to "/logs" # LOG_URL_PREFIX=/logs @@ -22,7 +22,7 @@ CONNECTION_URI=mongod+srv://mongo.net # Enable presence intent for the bot, defaults to false # ENABLE_PRESENCE_INTENT=false -# A github personal access token with the repo scope to access private repository +# A github personal access token with the repo scope to access private repository and update the bot automatically # GITHUB_TOKEN=abcdef # If set to true, only plugins that are in the registry can be loaded @@ -35,7 +35,7 @@ CONNECTION_URI=mongod+srv://mongo.net # OAUTH2_CLIENT_SECRET=abcdef # The redirect URL for logviewer OAuth. You must also add this URL in your application's Redirects section -# OAUTH2_REDIRECT_URI=https://logviewername.herokuapp.com/callback +# OAUTH2_REDIRECT_URI=https://logviewer.example.com/callback # The host address logviewer will bind itself to. Defaults to 0.0.0.0 # HOST=0.0.0.0 diff --git a/cogs/plugins.py b/cogs/plugins.py index 736ab1d09a..c510c0f048 100644 --- a/cogs/plugins.py +++ b/cogs/plugins.py @@ -306,7 +306,7 @@ async def parse_user_input(self, ctx, plugin_name, check_version=False): if self.bot.config.get("registry_plugins_only"): embed = discord.Embed( description="This plugin is not in the registry. To install this plugin, " - "you must set `REGISTRY_PLUGINS_ONLY=no` or remove this key in your .env file.", + "you must set `REGISTRY_PLUGINS_ONLY=false` or remove this key in your .env file.", color=self.bot.error_color, ) await ctx.send(embed=embed) @@ -356,7 +356,7 @@ async def plugins_add(self, ctx, *, plugin_name: str): if plugin.name in self.bot.cogs: # another class with the same name embed = discord.Embed( - description="Cannot install this plugin (dupe cog name).", + description="Plugin with this name is already installed.", color=self.bot.error_color, ) return await ctx.send(embed=embed)