1. 26 Aug, 2019 1 commit
    • garantiertnicht's avatar
      Update JDA · 282f4f84
      garantiertnicht authored
      JDA (the Discord library wrapper) was too old to handle news channels.
      The presence of a news channel caused the bot to crash and/or not start
      properly.
      
      JDA has been updated to the last 3.X.X release. The 4.X.X branch cannot
      be used as it would break setting roles to emotes, thus rendering the
      bot useless.
      
      There also has been a minor fix for a bug which prevented errors from
      being shown if there were no roles in the add/remove commands.
      282f4f84
  2. 04 Aug, 2019 1 commit
    • garantiertnicht's avatar
      Improve Permission Checks · fef80d55
      garantiertnicht authored
      Checking perms for the role and channel override was messed up at some
      places.
      
      The bot now checks for permissions which have an effect if granted on a
      channel override at the channel level and for permissions which only
      make sense on the role level at the role level. For example, Embed Links
      is checked for each channel; but Manage Emojis is checked at the role
      level.
      
      Furthermore code style changed and help for iknowwhatiamdoing was added.
      fef80d55
  3. 27 Jul, 2019 1 commit
  4. 25 Jul, 2019 10 commits
    • garantiertnicht's avatar
      Add unicorns · 69a2dd41
      garantiertnicht authored
      69a2dd41
    • garantiertnicht's avatar
      Abort if max argument level is reached · c1d728d7
      garantiertnicht authored
      I did check, rreply and continue execution.
      
      Now I actually abort.
      
      More oops.
      c1d728d7
    • garantiertnicht's avatar
      Do not reply to bots · f303204a
      garantiertnicht authored
      There was no check that the sender of the message was not a bot.
      
      Now there is a check.
      
      Oops
      f303204a
    • garantiertnicht's avatar
      Log eval commands · 9502eba3
      garantiertnicht authored
      Eval commands are not tracked in any way.
      
      There will now be a message in haxcidents as soon as someone executes
      eval.
      9502eba3
    • garantiertnicht's avatar
      Improve check for too many permissions · 1e5db582
      garantiertnicht authored
      The permission check works but could use some improvement.
      
      Having admin will no longer list every permission. Every permission
      states which role gave it to the bot. A new command has been added to
      bypass the permission check temporarily, but is not documented.
      1e5db582
    • garantiertnicht's avatar
      Make the command handler part of the Man object · 47dcdef5
      garantiertnicht authored
      There was no mapping between ManPage and command handler resulting in a
      match expression.
      
      The command handler is now a field of the ManPage.
      47dcdef5
    • garantiertnicht's avatar
      Improve usability of add and remove · 26034b2c
      garantiertnicht authored
      These commands had a lack of good feedback.
      
      The success message now includes the new mappings. The error message if
      the updating failed now contains instructions. A check was added if the
      added/removed roles where already/not part of all emotes, redirecting
      user to the other command respecively.
      26034b2c
    • garantiertnicht's avatar
      Improve usability of add and remove · dd040cd6
      garantiertnicht authored
      These commands had a lack of good feedback.
      
      The success message now includes the new mappings. The error message if
      the updating failed now contains instructions. A check was added if the
      added/removed roles where already/not part of all emotes, redirecting
      user to the other command respecively.
      dd040cd6
    • garantiertnicht's avatar
      Only print permission erros needed · 5761e9aa
      garantiertnicht authored
      The bot previously printed out an "The bot is missing the following
      permissions:" line when the user had no permissions but the bot was
      missing some, vice verca.
      
      This commit will only print the parts of the messages which are useful
      to the end user.
      5761e9aa
    • garantiertnicht's avatar
      Clarify Documentation · e881f629
      garantiertnicht authored
      It was not quite clear when to use add and when remove.
      
      The texts have been extended and an explanitory text was added before
      the command list. Additionaly, the canonical names listed in help have
      been changed - the old command names are still valid aliases.
      e881f629
  5. 22 Jun, 2019 1 commit
    • garantiertnicht's avatar
      Allow the Bot to have Send TTS permissions · ba1ed6ad
      garantiertnicht authored
      The bot denied to work on guilds if TTS was enabled.
      
      This isn't a very bad permission and is granted per default. Thus, it
      seems unreasonable to deny the bot from working with it.
      
      The bot will now work with the permission granted.
      ba1ed6ad
  6. 06 May, 2019 2 commits
  7. 15 Apr, 2019 1 commit
  8. 14 Apr, 2019 1 commit
  9. 27 Mar, 2019 1 commit
    • garantiertnicht's avatar
      Remove information on copyright protests · 9cc236cf
      garantiertnicht authored
      The protests are over. They did help, but weren't sufficient.
      
      You can look up who voted for it - just in case it could influence your
      vote in some elections which may or may not come up soon.
      9cc236cf
  10. 20 Mar, 2019 1 commit
  11. 18 Mar, 2019 1 commit
    • garantiertnicht's avatar
      Add elevated permission check · 455c7472
      garantiertnicht authored
      Some users give bots way too many permissions.
      
      We check if we have too many permissions and refuse to work if we have.
      If any command is executed, we check if we have too many permissions and
      if we do display a hopefully easy-to-understand error and abort command
      execution.
      455c7472
  12. 16 Mar, 2019 1 commit
  13. 14 Mar, 2019 1 commit
  14. 09 Mar, 2019 2 commits