Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 25a6d0d

Browse files
committed
Refactor: Update spelling in code comments
1 parent 215ff1d commit 25a6d0d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • projects/Chat-GPT-Discord-Bot

projects/Chat-GPT-Discord-Bot/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
load_dotenv(override=True)
1010

1111
with open("projects/Chat-GPT-Discord-Bot/GPT_Parameters.json") as f:
12-
data = json.load(f) # Loads the gpt system prompts
12+
data = json.load(f) # Loads the gpt system prompts
1313

14-
char_limit = data["system_content"][0]["character_limit_prompt"] # Makes sure that the gpt output wont exceed the discord embed character limit of 4096 characters
14+
char_limit = data["system_content"][0][
15+
"character_limit_prompt"] # Makes sure that the gpt output won't exceed the discord embed character limit of 4096 characters
1516

1617
try:
1718
token = os.getenv("BOT_TOKEN") # returns a str
@@ -59,7 +60,7 @@ async def setup_hook(self):
5960
self.tree.copy_global_to(guild=discord_server_2)
6061
await self.tree.sync(guild=discord_server_2)
6162
# You can replace these 4 lines with "await self.tree.sync()" if you want the bots commands to...
62-
# be added to all servers its in (wont take long if your bot isnt in many servers otherwise it could take up to an hour)
63+
# be added to all servers its in (won't take long if your bot isn't in many servers otherwise it could take up to an hour)
6364

6465

6566
intents = discord.Intents.default()
@@ -76,7 +77,7 @@ async def on_ready():
7677
type=discord.ActivityType.watching, name="For Slash Commands"
7778
)
7879
) # This changes the activity that is displayed under the bots name in the members list.
79-
80+
8081
# dm_user = await client.fetch_user(
8182
# owner_uid
8283
# )

0 commit comments

Comments
 (0)