DiscordMessages

Moved

Total Downloads: 1,769 - First Release: May 26, 2017 - Last Update: Feb 6, 2018

5/5, 16 likes
  1. Problem Continues
     
  2. I don't recall sending you my version. If you want the problem to stop just ask for my fixed copy of the plugin.
     
  3. How To Message Atimer
     
  4. got an interesting error:
    Code:
    In RCon I did a message:(21:37:19) | say:: Hi Mocher how goes it?
    (21:37:20) | {
      "Message": "(MalS)   Hi Mocher how goes it?",
      "UserId": 0,
      "Username": "SERVER",
      "Color": "#eee",
      "Time": 1515332245
    }
    (21:37:44) | [Better Chat] [Player] [Assassin] [Murderer] Mocher_Anger: hey, all good, thx, lots of fun with bots at airfield :)
    (21:37:44) | {
      "Message": "[Player] [Assassin] [Murderer] Mocher_Anger: hey, all good, thx, lots of fun with bots at airfield :)",
      "UserId": 76561197985578175,
      "Username": "Mocher_Anger",
      "Color": null,
      "Time": 1515332269
    }
    (21:37:44) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
      "UserId": 76561198068046723,"Username": "MalS","Color": null,"Time": 1515332869}(21:47:44) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0(21:47:56) | [Better Chat] [Player] [Assassin] [Murderer] Mocher_Anger: okay(21:47:57) | {"Message": "[Player] [Assassin] [Murderer] Mocher_Anger: okay","UserId": 76561197985578175,"Username": "Mocher_Anger","Color": null,"Time": 1515332881}(21:47:57) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    
     
    Last edited by a moderator: Jan 7, 2018
  5. every discord plugin using webhooks creates that error as it sends a message

    Code:
    [Oxide] 14:38 [Error] Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in :0
      at Oxide.Core.Libraries.WebRequests+WebRequest.b__42_0 () [0x00000] in :0 
     
  6. Ok so i just woke up to my message log in discord getting FLOODED with one of my players saying rip every single second.

    https://i.gyazo.com/5d6e31cc91c8790c9ae469214de3678f.png

    Code:
    (07:04:44) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:46) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:48) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:50) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:52) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:54) | Web request callback raised an exception in 'DiscordMessages v1.6.6' plugin (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:56) | Web request callback raised an exception in 'DiscordMessages v1.6.6' plugin (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (07:04:58) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0 
     
  7. For those experiencing the NullReferenceException errors, I have a edited version of this plugin that doesn't have this issue. Send me a message, and I will gladly send you the file.
     
  8. Slut updated DiscordMessages with a new update entry:

    1.7.0

     
  9. Thanks for the update.
     
  10. Hi

    I really like this plugin I was wondering if there was also a plugin that could send messages from discord to the in game server?
     
  11. Wulf

    Wulf Community Admin

    No, you'd need the Discord Extension for that.
     
  12. is there a way to config the discord message like right now when a report is sent it shows the info and then send another message saying @here. If there a way i can change it to say my discord name or a specific group name and also to prevent it from spamming it?
     
  13. Slut updated DiscordMessages with a new update entry:

    1.7.1

     
  14. Just did a bit of testing, how do I make it alert a role? I've got it to mention @here and such, but I've yet to get a role working.
     
  15. Make the role mention able on discord and then type @Role then put a backslash in front before you send the message. \@Role would turn into something like this "<@&294683144647475201>"
     
  16. Ah okay. Thanks for the quick help!
    [DOUBLEPOST=1516524901][/DOUBLEPOST]
    So, I went to go do this, and it just turns into regular text. Without making a mention, Am I supposed to keep the <>'s?
    EDIT:
    Figured it out, I'm so stupid. Sorry.
     
  17. hello, thank you for a great plugin!
    i have errors in my log however:

    [DiscordMessages] Voted1True
    [DiscordMessages] ServerWicked RustTrue
    [DiscordMessages] Reward(s)- You have received 1x Supply Signal
    False
    [DiscordMessages] Request callback raised an exception! (NullReferenceException: Object reference not set to an instance of an object)
    at Oxide.Plugins.DiscordMessages+<API_SendFancyMessage>c__AnonStorey0.<>m__0 (Int32 Callback) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.DiscordMessages+<Request>c__AnonStorey2.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
     
  18. Update to the latest version.
     
  19. Hi, it's possible to add Time before pseudo in message ? Like "14:02 Sorrow: It's my message"

    Edit : I added this between line 397 and 398

    Code:
    discordMessage = String.Concat(DateTime.Now.ToString("HH:mm"), ' ', discordMessage);
     
    Last edited by a moderator: Jan 22, 2018
  20. Is there any way to have this plugin also grab chat from the server console user? (for instance, when the "say" command is used from the console, this plugin does not currently capture the text that was posted as the "server" user. )

    I have setup a regex filter in rustadmin to detect certain filtered words and ban a player (instead of the apps default kick). In my discord chat, they see everything that was said up to the point where the macro bans the user, but they don't see the server message in chat that said "<player> has been banned for chat content". I would like this message to be captured too.