Posted October 30, 2017 (edited) Hi, I have created a simple discord relay mod that connects the kingdom chats to a discord server. Features: Sends all messages from kingdom chat to the appropriate kingdom text channel on discord Sends all messages from kingdom channels to appropriate kingdom channels in wurm Planned features: Support for villages and alliances Auto creation of village channels and proper permission management for users to read them on discord Discord user to wurm player linking Requirements: Discord server needs to have has text channels for all kingdoms with the same name as the kingdoms in game. Discord bot user (https://discordapp.com/developers/docs/topics/oauth2#bots) with an auth token Ago's mod loader v29.2+ Don't forget to configure the mod in the DiscordRelay.properties Current version is v0.2 You can find the release here: https://github.com/whisper2shade/DiscordRelay/releases/latest If you encounter any problems, please use the issues tracker on github (preferably) or reply to this thread. Have fun, whisper2shade Edited October 31, 2017 by whisper2shade New features and version number update 8 Share this post Link to post Share on other sites
Posted October 31, 2017 How oyu write "Freedom isles" as textchannels in discord? you can not make space Eject Share this post Link to post Share on other sites
Posted October 31, 2017 7 minutes ago, Eject said: How oyu write "Freedom isles" as textchannels in discord? you can not make space Eject Yes, i have noticed that. I've been using it only on my server, where we have only single word kingdoms. I will have a fix today. Share this post Link to post Share on other sites
Posted October 31, 2017 Thank you =) I started now my server and used just "Freedom" as channelname, but nothing happens, it seems my bot is online on discord, but i cant resolve messages. How you have tested it, with which settings? Maybe i do some wrong with the bot? Eject Share this post Link to post Share on other sites
Posted October 31, 2017 add: i prefer for me now, just using freedom would be good, so the connection to the discord server is separated from the real wurm chat, (because all members of 3 servers just speaking in the GL-Freedom) Eject Share this post Link to post Share on other sites
Posted October 31, 2017 2 minutes ago, Eject said: Thank you =) I started now my server and used just "Freedom" as channelname, but nothing happens, it seems my bot is online on discord, but i cant resolve messages. How you have tested it, with which settings? Maybe i do some wrong with the bot? Eject The problem is, that the kingdom has two words in the name. "Freedom Isles" -> this needs a "#freedom isles" channel on discord, but discord can't use spaces in names, so the bot can't connect the two chats. I will have a fix in a few hours (after i get back from work, i'll fix it.) The server i have it deployed on has only one kingdom "Kastia" and that is linked to "#kastia". No spaces, so it works fine. Share this post Link to post Share on other sites
Posted October 31, 2017 ah ok i understand =) Maybe are you able to make a new channel just for the connection to discord? this is just an idea simple named discord lol No rush whisper, thanks for this interesting works i am very curious how it works than. Eject Share this post Link to post Share on other sites
Posted October 31, 2017 I have fixed the kingdom names with spaces problem and deployed a new version. I have added a new property to configuration "useUnderscore" If true, kingdom names with spaces will be represented with underscores instead of spaces on discord (#freedom_isles) if false, the space will be removed (#freedomisles) Have fun 1 Share this post Link to post Share on other sites
Posted October 31, 2017 Looks neat, i wish i knew ###### about Discord bots to test it and use it maybe.. Share this post Link to post Share on other sites
Posted October 31, 2017 18 minutes ago, Virtuos said: Looks neat, i wish i knew ###### about Discord bots to test it and use it maybe.. A good guide is here: https://discordapp.com/developers/docs/topics/oauth2#bots I might write some tips later after i make it more feature complete. Right now i'm working on the ability for the bot to create all needed channels for kingdoms and villages. 2 Share this post Link to post Share on other sites
Posted October 31, 2017 (edited) 2 hours ago, whisper2shade said: A good guide is here: https://discordapp.com/developers/docs/topics/oauth2#bots I might write some tips later after i make it more feature complete. Right now i'm working on the ability for the bot to create all needed channels for kingdoms and villages. Thanks, got it working.. now our server can be spammed with a Automessager bot with neat Informations, awesome Mod! Edit: https://puu.sh/ybP9R/3e3397bedc.jpg - Apparently the Bot doesn't like Bot messages, any help? :/ Edited October 31, 2017 by Virtuos Share this post Link to post Share on other sites
Posted October 31, 2017 @whisper2shadeyou are very awesome =) i cant wait to go home from my realwork and test your new version Thank you for this mod Eject Share this post Link to post Share on other sites
Posted November 1, 2017 (edited) Hi there, just got this working on a test server: is there any chance I could get this set up so the discord messages are sent to GL-Freedom, instead of Freedom? Thanks Edited November 1, 2017 by RicePirate Share this post Link to post Share on other sites
Posted November 1, 2017 6 hours ago, Virtuos said: Thanks, got it working.. now our server can be spammed with a Automessager bot with neat Informations, awesome Mod! Edit: https://puu.sh/ybP9R/3e3397bedc.jpg - Apparently the Bot doesn't like Bot messages, any help? :/ That's because it is deliberately ignoring messages from bots. Could be made configurable in the future to allow this. 1 hour ago, RicePirate said: Hi there, just got this working on a test server: is there any chance I could get this set up so the discord messages are sent to GL-Freedom, instead of Freedom? Thanks I have to experiment with it a bit. We'll see. Right now i'm working on the autocreation of proper channels and management of villages as well (with proper permissions for village citizens). 2 Share this post Link to post Share on other sites
Posted November 1, 2017 (edited) Hello again GL-Freedom instead of Freedom Chat would be very fine, i have 3 servers connected, all is working with the bot, but if one is answering a question via discord, it is shown 1 time in the correct Freedom Chat and 3 times in the GL-Freedom chat at wurm. Eject edit, messages coming 2 times in gl-freedom, maybe this is a little issue that you can solve Edited November 1, 2017 by Eject Share this post Link to post Share on other sites
Posted November 1, 2017 something is wrong if i disable write permissions in discord for @everyone (i like atm that just staffmembers can send answers), no message from wurm is coming to the discord channel. If i activate write permissions, than all messages are coming Eject Share this post Link to post Share on other sites
Posted November 1, 2017 1 minute ago, Eject said: something is wrong if i disable write permissions in discord for @everyone (i like atm that just staffmembers can send answers), no message from wurm is coming to the discord channel. If i activate write permissions, than all messages are coming Eject The bot needs write permissions to write the messages in discord. 1 Share this post Link to post Share on other sites
Posted November 1, 2017 (edited) 3 hours ago, whisper2shade said: That's because it is deliberately ignoring messages from bots. Could be made configurable in the future to allow this. Would be awesome to have that Option. 8 minutes ago, Eject said: something is wrong if i disable write permissions in discord for @everyone (i like atm that just staffmembers can send answers), no message from wurm is coming to the discord channel. If i activate write permissions, than all messages are coming Eject Giving your Bot Admin will "fix" that ( https://puu.sh/yc9Yj/087527aaab.png ) tested and worked fine on my end Edited November 1, 2017 by Virtuos Share this post Link to post Share on other sites
Posted November 1, 2017 23 minutes ago, whisper2shade said: The bot needs write permissions to write the messages in discord. good point, so i will move the bot to the gm group in discord, thanks for the hint, i forgot that the bot is also in @everyone group =) Eject Share this post Link to post Share on other sites
Posted November 1, 2017 18 minutes ago, Virtuos said: Giving your Bot Admin will "fix" that ( https://puu.sh/yc9Yj/087527aaab.png ) tested and worked fine on my end ah thats also good, maybe better as solution Thanks =) Share this post Link to post Share on other sites
Posted November 1, 2017 The bot will require permissions in the future to create/manage channels and user roles. Share this post Link to post Share on other sites
Posted November 1, 2017 what is your idea with this new permissions? depending on share messages with wurm and discord Eject Share this post Link to post Share on other sites
Posted November 1, 2017 Just now, Eject said: what is your idea with this new permissions? depending on share messages with wurm and discord Eject The bot will create all required channels for kingdoms, villages and possibly alliances and then it will assign the proper permissions to view the channels to members of those villages, kingdoms and alliances so that whoever can view the channels in wurm can view them in discord. Share this post Link to post Share on other sites
Posted November 1, 2017 oh that sounds very interesting....if just the members can see this channels in discord =) this mod is very amazing, i was waiting near 2 years to get some solution to share the chats, and yesterday you made me happy ^^ Eject Share this post Link to post Share on other sites
Posted November 1, 2017 2 minutes ago, Eject said: oh that sounds very interesting....if just the members can see this channels in discord =) this mod is very amazing, i was waiting near 2 years to get some solution to share the chats, and yesterday you made me happy ^^ Eject Thanks Share this post Link to post Share on other sites