Allow bot accounts to reset their own token

Comments

7 comments

  • Donovan_DMC

    You can just search for the token text in the eval response before you send it to Discord, that should catch any accidents. If it's getting out any other way, you're unlikely to detect it either way.

    0
    Comment actions Permalink
  • JackTEK

    Fair argument but that takes some awkward rewriting to implement bot-wide, especially given that evaling a send can be done in a variety of ways.

    0
    Comment actions Permalink
  • Kyoko

    Just don't give everyone full access to eval

    0
    Comment actions Permalink
  • Hope

    Better yet, make your eval command botowner-only. Boom, problem solved.

    0
    Comment actions Permalink
  • JackTEK

    And if an owner goes rogue or makes a mistake?

    0
    Comment actions Permalink
  • Hope

    Well thats his fault then

    0
    Comment actions Permalink
  • VENC OnPoint

    You could also just look for the Token in every message and delete it, or as said search every eval message. Should only be 1-2 lines of code :/

    0
    Comment actions Permalink

Please sign in to leave a comment.