Files
OpenBB/discordbot/config_discordbot.py
DidierRLopes c5c3b8eee9 Major improvements to discord architecture (#887)
* fix circular-imports on discordbot

* Add pip install package to discord readme

* improve valuation and performance commands

* fix GST_PATH of config_discord

* fix feargreed discordbot

* Improve economy commands

* add data output to bot

* improve shorted command

* fix shorted command

* fix hsi discord command

* improve dps.pos command

* fix sidtc discord cmd

* fix discord ftd command

* fix dps.dpotc command

* improve dps spos

* check for ticker validity

* Improve psi discord command

* improve discord cmds

* refactor economy discord cmds
2021-11-01 01:43:02 +00:00

34 lines
837 B
Python

import os
import sys
import discord
from dotenv import load_dotenv
env_files = [f for f in os.listdir() if f.endswith(".env")]
if env_files:
load_dotenv(env_files[0])
# Relative path to the terminal
sys.path.append("..")
# https://discord.com/developers/applications/
DISCORD_BOT_TOKEN = os.getenv("GT_DISCORD_BOT_TOKEN") or "REPLACE_ME"
# https://apidocs.imgur.com
IMGUR_CLIENT_ID = os.getenv("GT_IMGUR_CLIENT_ID") or "REPLACE_ME"
# Settings
COMMAND_PREFIX = "!"
DATE_FORMAT = "%Y-%m-%d"
COLOR = discord.Color.from_rgb(0, 206, 154)
MENU_TIMEOUT = 30
DEBUG = True
GST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
AUTHOR_NAME = "Gamestonk Terminal"
AUTHOR_ICON_URL = (
"https://github.com/GamestonkTerminal/GamestonkTerminal/"
"blob/main/images/gst_logo_green_white_background.png?raw=true"
)