Skip to content

Commit 1067898

Browse files
committed
feat: add optional proxy config
1 parent b66d2d1 commit 1067898

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bot.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,10 @@ async def send_group_help(self, group):
9292
# If you want to make regular command help look different, then override it
9393
send_command_help = send_group_help
9494

95-
95+
load_dotenv()
9696
bot = helpers.Bot(command_prefix=prefix, description='Coding Bot v4',
9797
case_insensitive=True, embed_color=discord.Color.blurple(),
98-
intents=discord.Intents.all(), help_command=CustomHelp())
99-
load_dotenv()
98+
intents=discord.Intents.all(), help_command=CustomHelp(), proxy=os.getenv("BOT_PROXY"))
10099
if len(sys.argv) > 2:
101100
bot.token = sys.argv[2]
102101
else:

0 commit comments

Comments
 (0)