mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 15:17:29 +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
|
from functions import Symbol
|
||||||
|
|
||||||
DISCORD_TOKEN = "NjYyNzcyOTU5MzMyNTMyMjg2.Xg-1aw.Au28SCJJE3HLy23b3adREtLXFiY"
|
DISCORD_TOKEN = os.environ["DISCORD"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
IEX_TOKEN = os.environ["IEX"]
|
IEX_TOKEN = os.environ["IEX"]
|
||||||
@ -21,12 +21,10 @@ s = Symbol(IEX_TOKEN)
|
|||||||
|
|
||||||
client = discord.Client()
|
client = discord.Client()
|
||||||
|
|
||||||
intents = discord.Intents.default()
|
|
||||||
intents.members = True
|
|
||||||
bot = commands.Bot(
|
bot = commands.Bot(
|
||||||
command_prefix="/",
|
command_prefix="/",
|
||||||
description=s.help_text,
|
description=s.help_text,
|
||||||
intents=intents,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user