mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-15 23:06:40 +00:00
leaked an api key and had wrong intents
This commit is contained in:
parent
c3735f3945
commit
fb13517a7d
6
bot.py
6
bot.py
@ -9,7 +9,7 @@ from discord.ext import commands
|
||||
|
||||
from functions import Symbol
|
||||
|
||||
DISCORD_TOKEN = "NjYyNzcyOTU5MzMyNTMyMjg2.Xg-1aw.Au28SCJJE3HLy23b3adREtLXFiY"
|
||||
DISCORD_TOKEN = os.environ["DISCORD"]
|
||||
|
||||
try:
|
||||
IEX_TOKEN = os.environ["IEX"]
|
||||
@ -21,12 +21,10 @@ s = Symbol(IEX_TOKEN)
|
||||
|
||||
client = discord.Client()
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.members = True
|
||||
|
||||
bot = commands.Bot(
|
||||
command_prefix="/",
|
||||
description=s.help_text,
|
||||
intents=intents,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user