Discord Bot General Troubleshoot

RyuKyu567

New member
Aug 2, 2017
14
1
3
40
I am unable to find anything regarding this even after searching. I have followed the instructions for adding the Discord Bot and so far it somewhat functions but has some issues. Here are the following difficulties I am experiencing so far:

1: Messages from game will register on the connected discord channel however discord members messages do not display in game. Is this a limitation or did I miss something within the setup. Overall, message seem to only go in one direction even though the test within the 7 Days SM checks out.

2: Messages of players connecting or disconnecting from the 7 days server will not display bur rather an error will occur with "No output channel set, unable to send message to Discord:" There was a previous thread regarding this exact issue however I am unable to locate where the "Set Channel" is found or what setting to change within the event. Assistance with this would be greatly helpful.

Thanks in advance and if there is any additional information that I can provide please let me know.
 

Attachments

  • Test message received.PNG
    Test message received.PNG
    15.1 KB · Views: 8
  • In Game Text.PNG
    In Game Text.PNG
    282.3 KB · Views: 8
  • 7 Dyas SM error.PNG
    7 Dyas SM error.PNG
    2.4 KB · Views: 8
You want to click "Groups" in RAT, and then set the Discord channel there for the DEFAULT group.

Chat is bi-directional and much more. You can control these events, in the RAT Event Editor. Make sure they are enabled, and otherwise match what it is you are expecting to do.
 
You want to click "Groups" in RAT, and then set the Discord channel there for the DEFAULT group.

Chat is bi-directional and much more. You can control these events, in the RAT Event Editor. Make sure they are enabled, and otherwise match what it is you are expecting to do.
Hey Trekkan, Thank you for the reply. So I follow you so far, which here is what I currently have set within the DEFAULT group. I did have to make a quick change to the "Private channel" since there was a spelling error so the "player connecting to the server" and "Player connected to the server" is now functioning properly. However, I am still unable to get messages from Discord to show up in game. With that said, I am assuming it would be an event change since the 7 days SM recognizes the messages provided by discord (screenshots provided). There is definitely something missing.
 

Attachments

  • DEFAULT discord Group.PNG
    DEFAULT discord Group.PNG
    27.9 KB · Views: 9
  • Discord Chat SM.PNG
    Discord Chat SM.PNG
    5.9 KB · Views: 7
In the event editor, look for any Discord events. I think (I'm on a work PC and not my dev machine at the moment), there is a default event called "Player Discord Chat to Game chat" or something like that. Make sure that event is enabled, and correct. If you don't see it, you can always make a new event of type "Player Discord Chat" and use some of the other events as examples for the script. If you're still having problems, please let me know and I'll help when I'm on my development PC.
 
In the event editor, look for any Discord events. I think (I'm on a work PC and not my dev machine at the moment), there is a default event called "Player Discord Chat to Game chat" or something like that. Make sure that event is enabled, and correct. If you don't see it, you can always make a new event of type "Player Discord Chat" and use some of the other events as examples for the script. If you're still having problems, please let me know and I'll help when I'm on my development PC.
Ok, so I see what you mean about some of the Discord events not being enabled. Here is what I have enabled from what I can tell is associated with the channel in question. I did test to see if changing the "discord_private_channel" within the conditionals to the name of the text discord channel and neither worked. Both discord_private_channel and the change to 7-days-to-die (name of the channel) doesn't seem to make any difference. I also restarted the server just to be safe. I do feel that we are getting close. The 7 days SM discord chat still functions as intended and the messages to return to the discord application. If there is anything I can provide that may narrow down the issue please let me know.

Thanks!
 

Attachments

  • Enabled.PNG
    Enabled.PNG
    25.9 KB · Views: 3
Ok we are making progress... I figured out the issue regarding discord not showing up in game (just in case anyone else has the same issue). I ended up having to change the "ENDSWITH" with the channel name that the reply needed to go to. In my case discord replies needed to go to the "GLOBAL" channel. So that is one mystery solved.

The new mystery as I was fiddling around with the events, I noticed that all game chat channels would be displayed within discord. This is mainly done due to the game chat duplicating the chat. 1 is a default global chat thing (no channel associated with it) and the other would be the channel that you are texting in (example: Party). I am uncertain of how to change this if its even possible. Recommendations?
 

Attachments

  • Discord Chat to Game.PNG
    Discord Chat to Game.PNG
    7.9 KB · Views: 6
  • Test friends channel.PNG
    Test friends channel.PNG
    2.8 KB · Views: 6
Glad you got the other issue figured out! It sounds like what you are looking for in the new question, is that you want any chat a player does "Global, friend, etc. " to be displayed in a Discord channel? If that's correct, use the "Player Any Chat" event. That means, chat from any of the various channels, will be captured in that event. If that's not what you mean, please clarify and I'll do what I can. =)
 
Glad you got the other issue figured out! It sounds like what you are looking for in the new question, is that you want any chat a player does "Global, friend, etc. " to be displayed in a Discord channel? If that's correct, use the "Player Any Chat" event. That means, chat from any of the various channels, will be captured in that event. If that's not what you mean, please clarify and I'll do what I can. =)
Ah ha! See I knew there was something I was missing. I see that the Player Chat to Discord for the "Player Any Chat" is currently set with this: .DSAY:{discord_public_channel}:[chat_name}] {chat_content} and that is currently enabled. I will fiddle around with that and see how it goes. I think that gets me on the right track.