Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Discord Bot Code #393

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Updated Discord Bot Code #393

wants to merge 16 commits into from

Commits on Oct 2, 2024

  1. Updated discord bot code

    Removed any references I could find restricting the discord bot to a specific channel.
    
    I swapped it to utilize slash (/) commands and operate under a user installed bot rather than a guild installed bot. Discord has this as an official option when creating a bot and I felt having to have an entire server dedicated for a single bot was unnecessary so now it can be used anywhere at all.
    
    All messages are sent with ephemeral set to true if not in DMs with the bot so the bot commands can be executed in literally any server or in a DM with the bot itself and nobody else can see it.
    
    If commands are executed in a server, responses for holdings and transactions are DMed to you by the bot instead of sent in the server, even though ephemeral would be set to true so they would be hidden I felt it'd be better to have it in DMs either way.
    
    Holdings command is tested and working, Transactions command should function just as normal but have not fully tested since the market is closed. I did try it and it returned errors properly about what ticker I chose, the quantity, and the broker, but it would be worth testing again while the market is open before fully releasing.
    
    Dry is set to a default of True for transaction commands unless overrode during executing the command.
    Frank-Lom committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    51fbf44 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from NelsonDane/main

    Update from main branch
    Frank-Lom authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f8a3bc6 View commit details
    Browse the repository at this point in the history
  3. guides, example env, and dm command

    Updated guides and example env file
    Added a /dm command to start a dm with the bot if needed
    Removed unused DISCORD_CHANNEL variable from example env
    Added dry default state to env file so it can be defaulted to whatever the user wants (DISCORD BOT ONLY)
    Frank-Lom committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    9de26d4 View commit details
    Browse the repository at this point in the history
  4. Cleaned up minor code suggestions

    Trimmed leftover whitespace
    Removed unused imports
    Adjusted line spacing
    Frank-Lom committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    b5edb3f View commit details
    Browse the repository at this point in the history
  5. Removed default dry, merged ping and dm commands

    Removed default dry toggle
    Ping command now dms user so no need for /dm
    Frank-Lom committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    9e7386c View commit details
    Browse the repository at this point in the history
  6. capital global var

    NelsonDane committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    02e5176 View commit details
    Browse the repository at this point in the history
  7. wording

    NelsonDane committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    145e4d9 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    5d0febd View commit details
    Browse the repository at this point in the history
  2. add type hint

    NelsonDane committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    4af5d90 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. add space

    NelsonDane committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    4df1164 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91be3a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e8feee View commit details
    Browse the repository at this point in the history
  4. add upgrade guide

    NelsonDane committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    906d355 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    91e22f1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    df8dfb3 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. Configuration menu
    Copy the full SHA
    a4015cf View commit details
    Browse the repository at this point in the history