DiscordAPI

Moved

Total Downloads: 1,971 - First Release: Sep 21, 2016 - Last Update: Jun 8, 2017

5/5, 3 likes
  1. Hi, I am getting this error using RustNotifications "[Discord] Discord Api responded with 400: {"code": 40001, "message": "Unauthorized"}"

    Please can you help me?
     
  2. Wulf

    Wulf Community Admin

    Are you sure you have the correct API key set in the config for this plugin?
     
  3. I try with:

    {
    "BotToken": "Bot XXXXX",
    "ChannelID": YYYYY
    }

    And this:

    {
    "BotToken": "XXXXX",
    "ChannelID": YYYYY
    }

    I get the same error.
    I have the bot authorized in discord but the bot is offline
     
  4. Give this a try
     
  5. Hello,

    Don't work for me
    Code:
    (18:25:56) | [Oxide] 18:25 [Warning] [Discord] Discord Api responded with 404: {"code": 10003, "message": "Unknown Channel"}
    I don't understood what put for "ChannelID" in config file
     
  6. ChannelID is the ID of the channel that you want the bot to post it's messages in.

    Enable Devoper Mode in your User Settings in discord, then rightclick the channel in question and you should now have a "copy ID" option
     
  7. Thank you! Now the bot is working! Is there a way to appear connected when the server is open?
     
  8. Because all the bot does is relay http post messages from the server there isnt an actual "client" or bot application running to make the bot appear online :(
     
  9. I'm still running into the issue with
    Code:
    [Discord] Discord Api responded with 400: {"code": 40001, "message": "Unauthorized"}
    I added a second bot but that didn't do anything. I have the bot in my server, but when I try to do something like this:

    In game command --> Bot sends a message in discord

    I get the error.
     
  10. You need to setup a music bot or something with the details of the bot you with to use for the plugin, this will activate the account and allot the bot to recieve http post messages from the plugin.
     
  11. I'm very confused, can you maybe give a more step-by-step on how to do it?
    [DOUBLEPOST=1486442406][/DOUBLEPOST]I tried joining a random bot from the bot list to my server, that didn't do anything.
     
  12. Edit: I've managed to do it! The main thing I was missing is that a Bot has to be actively running through a script.
     
  13. Developer, can you add support for sending to multiple text channels?
     
  14. it'd be cool to be able to call an admin in game with rustnotifications, like /admin "message" or something...
     
  15. Wulf

    Wulf Community Admin

    Another plugin would handle that, this plugin is essentially only an API for others to use.
     
  16. right, I realized that this was the Discord plugin and not the RustNotifications after I posted it. Do you know of such a plugin?
     
  17. Wulf

    Wulf Community Admin

    There's a DiscordReport plugin, perhaps that?
     
  18. Like Wulf mentioned, my plugin DiscordReport is what you're looking for :)

    DiscordReport | Oxide
     
  19. Sorry but my english is really bad...

    I have create a bot : App NAme Bot Rust, Description Bot for my server Rust.

    On my discord, right click on chat general and get id, ge token bot :
    Code:
    APP BOT USER
    Username: Bot Rust#2565
    Token: secret token here
    Code:
    {
      "BotToken": "MjcxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "ChannelID": 283153853090XXXXXX
    }
    Plugin loaded, no error but bot don't come on my discord...

    edit: Solved, too long for join ^^
     
    Last edited by a moderator: Feb 24, 2017