Coder Social home page Coder Social logo

spikeydragoon / cross-ark-chat Goto Github PK

View Code? Open in Web Editor NEW
63.0 19.0 24.0 565 KB

Provides the ability to cross chat between all your Ark Survival Evolved Servers including discord support.

License: MIT License

arksurvivalevolved ark game-ark game game-mod chat cross-server csharp

cross-ark-chat's Introduction

Cross-Ark-Chat

To see how to set up the bot and settings check out the new wiki page.

Check out the FAQ page before asking questions or submitting issues.

After you check out the wiki and FAQ join us on Discord for support and for latest updates.

Bot's Official Host ServerBlend

Be sure to check out the bot's official host ServerBlend.com.
Affiliate Disclosure: By using this link CrossArkChat will receive a small commission at no additional cost to you, if you sign up for the service.

If you want to support me you can now do so with the link below. It will say Dragon Coding Studios at the top.

paypal

To-Do List

  • For a updated list check here

Built With

  • QueryMaster - Lib used to handle all steam and rcon connections.
  • Discord.net - Lib used to handle all discord connections.
  • C# .Net - Coding language used.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Shout out to Bletch1971 looking over your rcon code helped a lot and the ASM program you and your team developed is amazing.
  • Shout out to Perseus#1192 for taking my linux guide deleting it and making a usefull guide. The one i made sucked :(

cross-ark-chat's People

Contributors

bletch1971 avatar spikeydragoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cross-ark-chat's Issues

Cannot connect

Hi,

I have installed CrossArkChat and it wont seem to connect. Have you had issues with Nitrado servers?

object reference not set to an instance of an object

Although the bot seems to be configured correctly because It does log every message that gets sent in game and it is online on discord, it does not repeat the messages in the ds chat, and logs only (even on verbose) in the 2020-02-24_RconErrors: Object reference not set to an instance of an object.
Config.zip

Request

Would you be willing to or are you planning on making the uncompiled source code public?

Thanks

config not working as expected v5.2.0.0

was running with 4.1.0.0 and running fine. Updated to 5.2.0.0 and having alot of issues. I didn't use the same config, rebuild it from scratch. here are some of the issues I found and had to revert back to 4.1.0.0 as it's un-usable currently.

  1. Join and Leave messages are sending to chat channel ID and to JoinLeaveNotificationsDiscordChannelID as well even though I have SendJoinLeaveNotificationsToServerOwnChannel set to true.

  2. having UsePrefixToSendChat set to false still required using the prefix to send messages to in game.

  3. changing UsePrefixToSendChat to true seems to work as expected, but causes duplicate messages everytime someone chats from game to discord, it comes through as 2 as it's a loop.

  4. SendServerChatToOwnChannel set to false doesn't send anything to the normal channel ID setup from DiscordChannelID . setting it to true seems to send to that, instead of to the IDs defined within the config.

once i ran into all of these, I reverted back. not sure what else to try let me know if you need my config file.

Tool isnt sending

The tool is just recieving messages from the server but if i try to send a msg from discord to server like "hey" or "/ark hey" it wont work.
"DiscordSettings": { "DiscordChannelID": "458464026720993280", "TribeLogsDiscordChannelID": "458464980904181762", "prefix": "d!", "DiscordToken": "xxx", "ShowAdminCommands": false, "ShowChatPrefixInDiscord": true, "ShowTribelogsInChat": false, "SendTribeLogsToOwnChannel": false, "SendServerChatToOwnChannel": false, "UsePrefixToSendChat": true, "PrefixToSendChat": "/ark"

Discord.Net.HttpException

Have these errors when verbose is enabled. Pre 5.7 version (5/8/19) Any help would be appreciated.

2:44:42 Discord.Net.HttpException: The server responded with error 50013: Missing Permissions
at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request)
at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request)
at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request)
at Discord.API.DiscordRestApiClient.SendJsonAsync[TResponse](String method, String endpoint, Object payload, String bucketId, ClientBucketType clientBucket, RequestOptions options)
at Discord.API.DiscordRestApiClient.ModifyGuildChannelAsync(UInt64 channelId, ModifyTextChannelParams args, RequestOptions options)
at Discord.Rest.ChannelHelper.ModifyAsync(ITextChannel channel, BaseDiscordClient client, Action`1 func, RequestOptions options)
at CrossArkChat.PlayerCountService.PlayerCountAsync()

Cross-Ark-Chat Won't boot

I am trying to get the program to work but I have had no luck so far.
I didn't change anything in the config yet, but still it won't start.

ubuntu@ubuntu:~$ systemctl status CrossArkChat.service
● CrossArkChat.service - ARK Cross Chat Service
Loaded: loaded (/lib/systemd/system/CrossArkChat.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-08-05 13:39:15 UTC; 5s ago
Process: 2009 ExecStart=/home/ubuntu/CrossArkChat/CrossArkChat (code=exited, status=203/EXEC)
Main PID: 2009 (code=exited, status=203/EXEC)

Aug 05 13:39:20 ubuntu systemd[1]: CrossArkChat.service: Service hold-off time over, scheduling restart.
Aug 05 13:39:20 ubuntu systemd[1]: CrossArkChat.service: Scheduled restart job, restart counter is at 3.
Aug 05 13:39:20 ubuntu systemd[1]: Stopped ARK Cross Chat Service.
Aug 05 13:39:20 ubuntu systemd[1]: CrossArkChat.service: Start request repeated too quickly.
Aug 05 13:39:20 ubuntu systemd[1]: CrossArkChat.service: Failed with result 'exit-code'.
Aug 05 13:39:20 ubuntu systemd[1]: Failed to start ARK Cross Chat Service.

I am running ubuntu server

Cross-Ark-Chat v3.2.0.0 wont start

Hello all,

i wanted to update the Cross-Ark-Chat today to the new version with new configs.
But it wont start the bot and i get the followed error:

https://pastebin.com/BPbp53Z1

This is my new config:

https://pastebin.com/8Pu72228

I use Windows Server 2012 Standard as os. Their is no log or anything what would me help.
So i need some help to get it to work. The old versions of Cross-Ark-Chat all working for me.

Greetz,
Markezzz

Chat not scrolling down.

I think there is a way for this to be fixed by the bot, I've noticed that the chat doesn't bug out when people are just chit chatting, lines no more than two long. but as soon as someone starts writing lots of large bodys of text, it glitches.

It therefore would be possible for the bot to edit these large bodys of text into multiple messages no more than two/three lines long at a time and avoid the issue.

I haven't been able to calculate the exact threshold at which it does this, and thats probrably because its not monospaced text, but if you assumed all messages were written in the largest letters e.g. m then you could decide a limit to the chars and make more than that overflow to another message.

I would love to know your thoughts on this.

Originally posted by @TeH-BaK in #48 (comment)

Admin commands on cross chat

Hi,

Firsth thanks for your amazing work.

I have used your cross chat after my old api stoped working a month ago.

Your cross chat works greate, and the integration with discord is so good and amazing.

The yellow letters get in the way a lot, but I get the explanation you left on github.

Is there a something I can´t take from the chat: the admin logs, even doing these settings in the conf file. You could check this out? actually just missing this for your tool to be 100%.

Sorry for my bad english.

Sincerely Paulo

[Linux ] High Ports

Hello,

is it possible that the ARK chat does not work for ports over 30000 or over 40000?

With best regards,
Vakarian

Bot seems to miss some messages

Mostly the bot works as expected, but i'm noticing randomly some messages the bot isn't pushing through to the discord, I have checked the logs and they are definitely logged in them, but the bot seems to not repeat them all into the discord. (This is using the setting whereby all messages in global are pushed into the discord.)

I have tried some things like changing the rcon chat buffer length and deleting the logs, but this issue seems to persist, it also seems to effect the commands, so they do not work occasionally.

Do you have any suggestions as to maybe server settings that I might have that is causing some compatibility issues? Or any other insights?

IRC Support

Any chance for IRC support? I can't find an Ark IRC connector, though it's possible I didn't look hard enough. I'd much rather retain the ability to support a wider range of clients than just Discord.

Messaging Users Joining/Leaving

The can't display if a user has left or joined the game right now. It would be really cool if the bot could display that upon setting it to "true" as an option in the _configuration.json. Hope to hear back from you Spikey! Chris.

Error : Segmentation fault

Hi,

first thank you for this awesome Bot, but i cannot get it work, i followed the readme word by word, when i try to execute ./CrossDiscordArkChat (permission for all the folder changed to 755), i get the message 'Segmentation fault'.

what cause this error ? google say it is a memory lake problem, i have 10/32 go free....

Debian 9.4 / CrossDiscordChat

CrossArkChat

Hello I would like to know if we can modify the writing of the chat because I find that it is very big the writing between the discord chat via server and from server to server its would be cool if we can put the same writing as the chat original global

LOCAL chat broadcasting to all

Issue: LOCAL chat broadcasts to all servers and Discord channel.
Details: I attempted to find a config setting for this or some way of commenting it out in code, but I was unsuccessful. Can this be changed easily?

Special characters

Hi spikeydragoon,

I'm french and I use your solution for my ark server and my discord :) Thank you for your solution. it's realy pratical ! I meet some problems and I want to talk about with you.

Special characters of general channel in ark don't working correctly in channel discord
In French, if I write "ah j'ai une idée" in game, in the discord I say "ah j'ai une id?e"
I think it is a problem with rcon but I don't know =x

Sorry for my poor english I don't speak very well :p

Support mesasges doesn't support spaces

Hi there!
I'm hosting on windows server with russian localization and my problem what /sos command doesn't support spaces in it. Meaning player should send support request like this "/sos igotstuckintreeshelpmepls" otherwise Discord will not display it.

Here's my support part code
"SupportSettings": {
"SupportDiscordChannelID": correct-ID-here,
"UseSupportPrefix": true,
"PingRoleName": true,
"ReplyToSupportPing": true,
"SupportPrefix": "/sos",
"SupportRoleToPing": "ArkAdmin",
"SupportPingReply": "Ваше сообщение отправлено!"
}

Tribe Log Not Working

Hey, im trying to log the Tribe Log ito an sep. Channel ..

unf. its still posting in the same channel than the normal messages, its may of Ark Server Manager ?

here is my config

//For all info on config visit https://github.com/spikeydragoon/Cross-Ark-Chat and look at the readme file as it goes over all config information.
// DO NOT change anything in the Rcon settings unless you know what you are doing!!!
{
"ApplicationSettings": {
"VersionCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/version.txt",
"PatchNotesCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/CrossArkChatPatchNotes.txt",
"LogErrors": true,
"LogChat": true,
"LogAdminCommands": true,
"LogTribeLogs": true,
"UseDiscord": true,
"DiscordLogSeverity": "info"
},
{
"NameTag": "Chat2",
"IP": "0.0.0.0",
"RconPort": 0,
"QueryPort": 0,
"Password": "Password",
"SettingToUse": 2,
"Active": false
}
],

"ServerSettings": [
{
"SettingNumber": 1,
"ServerTag": "",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": 0
},
{
"SettingNumber": 2,
"ServerTag": "",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": 0
}
],

"PrefixGroups": [
{
"ChatPrefix": "/prefix",
"ServerList": [
"chat1",
"chat2"
]
},
{
"ChatPrefix": "/prefix2",
"ServerList": [
"chat1",
"chat2"
]
}
],

"Tribes": [
{
"TribeId": "1671607830",
"SettingToUse": 1,
"Active": true
},
{
"TribeId": "1577468764",
"SettingToUse": 2,
"Active": true
}
],

"TribeSettings": [
{
"SettingNumber": 1,
"ShowFullTribeLog": false,
"ShowTribeName": true,
"ShowServerName": true,
"ShowTribeId": true,
"EmbedTribeLog": true,
"DiscordChannelId": 686713491171967012
},
{
"SettingNumber": 2,
"ShowFullTribeLog": false,
"ShowTribeName": true,
"ShowServerName": true,
"ShowTribeId": true,
"EmbedTribeLog": true,
"DiscordChannelId": 686713596566175762
}
],

"GameCommands": [
{
"Command": "!discord",
"CommandReply": "https://discord.gg/",
"Active": false
},
{
"Command": "rules",
"CommandReply": "These are the rules.",
"Active": false
},
{
"Command": "/ping",
"CommandReply": "Pong!",
"Active": false
}
],

"CustomTagList": [
"ACM[CMD]",
"SERVER: ACM[CMD]"
],

"RconSettings": {
"NoResponceTag": "Server received, But no response!!",
"NoPlayerTag": "No Players Connected",
"ServerRepeatTag": "SERVER:",
"AdminCMDTag": "AdminCmd:",
"TribeLogTag": "Tribe",
"GetChatCmd": "getchat",
"ListPlayersCmd": "ListPlayers",
"ListPlayerCheckTimeInMs": 10000,
"GetChatTimeInMs": 1000,
"PlayerCountCheckTimeInMs": 30000,
"VersionCheckTimeInMs": 3600000,
"RconSendTimeoutInMs": 3000,
"RconReceiveTimeoutInMs": 10000,
"RconConnectionRetrys": 1
},

"EmbeddedTribeLogColorSettings": [
{
"LogType": "killed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "demolished",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "claimed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "unclaimed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "tamed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "destroyed",
"LogColor": "ff7400",
"RoleToPing": "none"
},
{
"LogType": "froze",
"LogColor": "d8ddd8",
"RoleToPing": "none"
},
{
"LogType": "downloaded",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "uploaded",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "starved",
"LogColor": "ff2121",
"RoleToPing": "none"
}
],

"ChatSettings": {
"UseCustomTags": false,
"SendChatToServers": true,
"ShowAdminCommands": false,
"UseGameCommands": false,
"UsePrefixToSendChat": false,
"UseWordReplacementList": false,
"AllServersChatPrefix": "/all"
},

"DiscordSettings": {
"DiscordBotSettings": {
"CommandPrefix": "d!",
"DiscordBotToken": "xxxxxx",
"IgnoreOtherBots": true,
"ShowDiscordNickName": true
},

"ServerChatSettings": {
  "ChatDiscordChannelID": 538797995307696168,
  "SendServerChatToOwnChannel": false
},

"DiscordChatSettings": {
  "DiscordChatPrefix": "Discord",
  "SendChatToDiscord": true,
  "UsePrefixToSendToDiscord": false,
  "PrefixToSendToDiscord": "/discord"
},

"NotificationSettings": {
  "VersionDiscordChannelId": 0,
  "PatchNotesDiscordChannelId": 0,
  "JoinLeaveNotificationsDiscordChannelID": 0,
  "UseVersionChecker": false,
  "UsePatchNotesChecker": false,
  "UseJoinLeaveNotifications": false,
  "UsePlayerCountChannelUpdater": false,
  "SendJoinLeaveNotificationsToServerOwnChannel": false
},

"AdminCommandSettings": {
  "AdminCommandsDiscordChannelID": 0,
  "SendAdminCommandsToOwnChannel": false
},

"TribeLogSettings": {
  "TribeLogsDiscordChannelID": 674237113943851008,
  "ShowTribelogs": true,
  "ShowFullTribeLog": false,
  "ShowTribeId": true,
  "ShowTribeName": true,
  "ShowServerName": true,
  "EmbedTribeLog": true,
  "SendTribeLogsToOwnChannel": true
},

"SupportSettings": {
  "SupportDiscordChannelID": 0,
  "UseSupportPrefix": false,
  "PingRoleName": false,
  "ReplyToSupportPing": true,
  "SupportPrefix": "/help",
  "SupportRoleToPing": "rolename",
  "SupportPingReply": "Your support ticket has been sent."
}

}
}

Homepage Chat

Hello,

sorry my english isn't so good.

We want the ARK chat also on our homepage showing and that members can take notes.

We have created a bot and send all messages from the homepage and the ARKs to a Discord Channel. Everything works wonderfully, the chat of ARK appears with us on the homepage.

Now to the problem:
Messages sent via the homepage are only sent if the setting IgnoreOtherBots is set to false.

In addition there is now the problem, if someone writes something on an ARK server, the message is sent twice.

https://data.sponsor-universe.eu/index.php/s/wcMdfToWsefE6o7

Is there a solution?

With kind regards,
Vakarian

Configured

Dear Spikeydragoon,

I have recently set up an Ark server cluster with 4 different maps on HostHavoc and would love to include the cross-ark-chat to improve the communication between the maps and the Discord server.
I have been trying to configure the _configuration.json file as described on your wiki.
After adding in all the data of the cluster to each cluster configuration file (IPs, RCOns, passwords and Discord connections), the cross ark chat and Discord app still do not not work. We do not get any error messages either.
I have tried to read the description and coding several times but am still not sure what I need to change to get it to work.
Below this message, I have included the current _configuration.json file without the passwords, Discord bot token and channel code.

I hope you can help me fix this problem.

Kind regards,

Patrick

//For all info on config visit https://github.com/spikeydragoon/Cross-Ark-Chat and look at the readme file as it goes over all config information.
// DO NOT change anything in the Rcon settings unless you know what you are doing!!!
{
"ApplicationSettings": {
"VersionCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/version.txt",
"PatchNotesCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/CrossArkChatPatchNotes.txt",
"LogErrors": true,
"LogChat": true,
"LogAdminCommands": true,
"LogTribeLogs": true,
"UseDiscord": true,
"DiscordLogSeverity": "info"
},

"Servers": [
{
"NameTag": "Aberration",
"IP": "173.234.27.85",
"RconPort": 27060,
"QueryPort": 27059,
"Password": "Removed the info for privacy",
"SettingToUse": 1,
"Active": true
},
{
"NameTag": "Extinction",
"IP": "173.234.27.85",
"RconPort": 27063,
"QueryPort": 27062,
"Password": "Removed the info for privacy",
"SettingToUse": 2,
"Active": true
},
{
"NameTag": "Ragnarok",
"IP": "173.234.27.85",
"RconPort": 27051,
"QueryPort": 27050,
"Password": "Removed the info for privacy",
"SettingToUse": 3,
"Active": true
},
{
"NameTag": "TheCenter",
"IP": "173.234.27.85",
"RconPort": 27069,
"QueryPort": 27068,
"Password": "Removed the info for privacy",
"SettingToUse": 4,
"Active": true
}
],

"ServerSettings": [
{
"SettingNumber": 1,
"ServerTag": "Aberration",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": Removed the info for privacy
},
{
"SettingNumber": 2,
"ServerTag": "Extinction",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": Removed the info for privacy
},
{
"SettingNumber": 3,
"ServerTag": "Ragnarok",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": Removed the info for privacy
},
{
"SettingNumber": 4,
"ServerTag": "TheCenter",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": Removed the info for privacy
}
],

"PrefixGroups": [
{
"ChatPrefix": "/prefix",
"ServerList": [
"chat1",
"chat2"
]
},
{
"ChatPrefix": "/prefix2",
"ServerList": [
"chat1",
"chat2"
]
}
],

"Tribes": [
{
"TribeId": "00000",
"SettingToUse": 1,
"Active": false
},
{
"TribeId": "00000",
"SettingToUse": 2,
"Active": false
}
],

"TribeSettings": [
{
"SettingNumber": 1,
"ShowFullTribeLog": false,
"ShowTribeName": false,
"ShowServerName": true,
"ShowTribeId": false,
"EmbedTribeLog": true,
"DiscordChannelId": 0
},
{
"SettingNumber": 2,
"ShowFullTribeLog": false,
"ShowTribeName": false,
"ShowServerName": true,
"ShowTribeId": false,
"EmbedTribeLog": true,
"DiscordChannelId": 0
}
],

"GameCommands": [
{
"Command": "!discord",
"CommandReply": "https://discord.gg/",
"Active": false
},
{
"Command": "rules",
"CommandReply": "These are the rules.",
"Active": false
},
{
"Command": "/ping",
"CommandReply": "Pong!",
"Active": false
}
],

"CustomTagList": [
"ACM[CMD]",
"SERVER: ACM[CMD]"
],

"RconSettings": {
"NoResponceTag": "Server received, But no response!!",
"NoPlayerTag": "No Players Connected",
"ServerRepeatTag": "SERVER:",
"AdminCMDTag": "AdminCmd:",
"TribeLogTag": "Tribe",
"GetChatCmd": "getchat",
"ListPlayersCmd": "ListPlayers",
"ListPlayerCheckTimeInMs": 10000,
"GetChatTimeInMs": 1000,
"PlayerCountCheckTimeInMs": 30000,
"VersionCheckTimeInMs": 3600000,
"RconSendTimeoutInMs": 3000,
"RconReceiveTimeoutInMs": 10000,
"RconConnectionRetrys": 1
},

"EmbeddedTribeLogColorSettings": [
{
"LogType": "killed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "demolished",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "claimed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "unclaimed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "tamed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "destroyed",
"LogColor": "ff7400",
"RoleToPing": "none"
},
{
"LogType": "froze",
"LogColor": "d8ddd8",
"RoleToPing": "none"
},
{
"LogType": "downloaded",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "uploaded",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "starved",
"LogColor": "ff2121",
"RoleToPing": "none"
}
],

"ChatSettings": {
"UseCustomTags": false,
"SendChatToServers": true,
"ShowAdminCommands": false,
"UseGameCommands": false,
"UsePrefixToSendChat": false,
"UseWordReplacementList": false,
"AllServersChatPrefix": "/all"
},

"DiscordSettings": {
"DiscordBotSettings": {
"CommandPrefix": "d!",
"DiscordBotToken": "Removed the info for privacy",
"IgnoreOtherBots": true,
"ShowDiscordNickName": true
},

"ServerChatSettings": {
  "ChatDiscordChannelID": 647025864118108170,
  "SendServerChatToOwnChannel": false
},

"DiscordChatSettings": {
  "DiscordChatPrefix": "Discord",
  "SendChatToDiscord": true,
  "UsePrefixToSendToDiscord": false,
  "PrefixToSendToDiscord": "/discord"
},

"NotificationSettings": {
  "VersionDiscordChannelId": 0,
  "PatchNotesDiscordChannelId": 0,
  "JoinLeaveNotificationsDiscordChannelID": 0,
  "UseVersionChecker": false,
  "UsePatchNotesChecker": false,
  "UseJoinLeaveNotifications": false,
  "UsePlayerCountChannelUpdater": false,
  "SendJoinLeaveNotificationsToServerOwnChannel": false
},

"AdminCommandSettings": {
  "AdminCommandsDiscordChannelID": 0,
  "SendAdminCommandsToOwnChannel": false
},

"TribeLogSettings": {
  "TribeLogsDiscordChannelID": 0,
  "ShowTribelogs": false,
  "ShowFullTribeLog": false,
  "ShowTribeId": true,
  "ShowTribeName": true,
  "ShowServerName": true,
  "EmbedTribeLog": true,
  "SendTribeLogsToOwnChannel": false
},

"SupportSettings": {
  "SupportDiscordChannelID": 0,
  "UseSupportPrefix": false,
  "PingRoleName": false,
  "ReplyToSupportPing": true,
  "SupportPrefix": "/help",
  "SupportRoleToPing": "rolename",
  "SupportPingReply": "Your support ticket has been sent."
}

}
}

Getting started for Linux update to math folder names

Prerequisites

For linux you will need to install libunwind8 for cross ark chat to work

For Ubuntu/Debian

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libunwind8

For RedHat/CentOS

sudo yum update
sudo yum install libunwind libicu nano

If you get any System.Net.Http.CurlHandler errors you might need to install libcurl3 using the methods above just replace libunwind8 with libcurl3

You must have rcon enabled in the ark server gameusersettings.ini file. If using ASM you can just check enable rcon in the administrator section.

For tribe logs to work you must enable Server rcon output tribe logs in the server launcher settings by adding this tag. -ServerRCONOutputTribeLogs In ASM you can just check the Server RCON OUTPUT tribe logs option in the Administrator section.

Installation using Systemd (Ubuntu ect)

  1. Download CrossArkChat for linux and transfer it to your linux server via file transfer or however you prefer to move your files to and from your linux server.

  2. Set CrossArkChat directory to your home directory and then change permissions to the executable file.

chmod u+x /home/<your-username>/CrossArkChatLinux/CrossArkChat
  1. Create a new systemd service for CrossArkChat

sudo nano /lib/systemd/system/CrossArkChat.service 
  1. Paste the following content and replace User and Group with your own username

[Unit]
Description=ARK Cross Chat Service
[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User=<your-username>
Group=<your-username>
ExecStart=/home/<your-username>/CrossArkChatLinux/CrossArkChat
ExecReload=/bin/kill -s HUP $MAINPID 
ExecStop=/bin/kill -s TERM $MAINPID 
[Install]
WantedBy=multi-user.target
  1. Press Ctrl + x,y (to save), Enter (to save with the same name)

  2. Enable the new CrossArkChat service

sudo systemctl enable CrossArkChat.service 
  1. Reload the Systemd Daemon (Do this every time you modify a server file)

sudo systemctl daemon-reload
  1. **Note before starting make sure you edit the /home/<your-username>/CrossArkChatLinux/Config/_configuration.json file and set up discord if you’re linking it to the bot. **

  2. Start the CrossArkChat service. You can use start, stop, restart or status. You don't have to run it manually again since it's enabled to start on boot.

    sudo systemctl start CrossArkChat.service

Alternative ways to get CrossArkChat to run on boot on different linux distros

CrossArkChat using /etc/rc.local (Debian etc) or /etc/rc.d/boot.local (RedHat etc)

  1. Open the /etc/rc.local or /etc/rc.d/boot.local

sudo nano /etc/rc.local
  1. Paste the following line at the end of the file and replace with your own username.

/home/<your-username>/CrossArkChatLinux/CrossArkChat
  1. Press Ctrl + x, y (to save), Enter (to save with the same name).

  2. Run CrossArkChat **Note before starting make sure you edit the
    /home/<your-username>/CrossArkChatLinux/Config/_configuration.json file and set up discord if you’re linking it to the bot. **

cd ~/CrossArkChatLinux ./CrossArkChat &

CrossArkChat using crontab for everyone else

  1. Open crontab

crontab -e 
  1. Paste the following line at the end of the file and replace with your own username.

@reboot /home/<your-username>/CrossArkChatLinux/CrossArkChat
  1. Press Ctrl + x, y (to save), Enter (to save with the same name)

  2. Run CrossArkChat.

**Note: Before starting make sure you edit the 
/home/<your-username>/CrossArkChatLinux/Config/_configuration.json file.** Set up the discord bot account if you are using the bot with discord. cd ~/CrossArkChatLinux ./CrossArkChat &


Various noob issues

Hi friend. Thanks for creating this software. I was able to enjoy it on another server but so far setting it up on my own has been a bit of trouble.
I was able to finally get CrossArkChat.exe to actually stay open and stay connected with the gateway, etc. When I type into discord, the message is relayed into the crossarkchat program, however, no discord messages go into the ARK server, and no ARK chat is relayed to discord. Likewise, when I try to do any d! commands it tells me I don't have the required role even though I'm the admin of both the discord and the ARK server.

Any help would be greatly appreciated.

Chat doesn't scroll down to show latest messages

As this is an Ark issue i'm not certain if you will be able to do a fix for this or not, but when you get multiple multi lined messages from cross server chat - same as if you were to get large amounts of admin logging messages - the chat bugs out and doesn't scroll to the bottom. This isn't too bad for the ark players who know how to scroll the chat with page up and page down, but for new players this is an impassable barrier to read the chat or get the message on how to fix it.

Issue getting it to work on the servers

I have posted the code below and not sure what I am missing here to get it to work. Any advice would be great. Thanks!

},

"Servers": [
{
"Valguero": "Chat1",
"IP": "104.194.11.241",
"RconPort": 32330,
"QueryPort": 27015,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"Ragnarok": "Chat2",
"IP": "104.194.11.241",
"RconPort": 32340,
"QueryPort": 27025,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"TheIsland": "Chat3",
"IP": "104.194.11.241",
"RconPort":32332 ,
"QueryPort": 27017,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"Abberation": "Chat4",
"IP": "104.194.11.241",
"RconPort": 32336,
"QueryPort": 27021,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"Extinction": "Chat5",
"IP": "104.194.11.241",
"RconPort": 32334,
"QueryPort": 27019,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"ScorchedEarth": "Chat6",
"IP": "104.194.11.241",
"RconPort": 32342,
"QueryPort": 27027,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"Genesis": "Chat7",
"IP": "104.194.11.241",
"RconPort": 32338,
"QueryPort": 27023,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"CrystalIsles": "Chat8",
"IP": "104.194.11.241",
"RconPort": 32344,
"QueryPort": 27029,
"Password": "",
"SettingToUse": 1,
"Active": true
}
],

"ServerSettings": [
{
"SettingNumber": 1,
"ServerTag": "",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": 0
}
],

"PrefixGroups": [
{
"ChatPrefix": "/prefix",
"ServerList": [
"chat1",
"chat2",
"chat3",
"chat4",
"chat5",
"chat6",
"chat7",
"chat8"
]
}

Admin command not on Admin channel

Hi,
I don't understand the admin command write on channel chat and not on admin channel

My config file is :

//For all info on config visit https://github.com/spikeydragoon/Cross-Ark-Chat and look at the readme file as it goes over all config information.
// DO NOT change anything in the Rcon settings unless you know what you are doing!!!
{
"ApplicationSettings": {
"VersionCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/version.txt",
"PatchNotesCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/CrossArkChatPatchNotes.txt",
"LogErrors": true,
"LogChat": true,
"LogAdminCommands": true,
"LogTribeLogs": true,
"UseDiscord": true,
"DiscordLogSeverity": "info"
},

"Servers": [
{
"NameTag": "Ragnarok",
"IP": "127.0.0.1",
"RconPort": 27020,
"QueryPort": 27015,
"Password": "",
"SettingToUse": 1,
"Active": true
},
{
"NameTag": "Valguero",
"IP": "127.0.0.1",
"RconPort": 27021,
"QueryPort": 27016,
"Password": "",
"SettingToUse": 1,
"Active": true
}
],

"ServerSettings": [
{
"SettingNumber": 1,
"ServerTag": "",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": 0
},
{
"SettingNumber": 2,
"ServerTag": "",
"ServerPlayerTag": ":",
"PlayerChatTag": ":",
"ChatTag": "",
"HideNameTag": false,
"DiscordChannelId": 0
}
],

"PrefixGroups": [
{
"ChatPrefix": "/prefix",
"ServerList": [
"chat1",
"chat2"
]
},
{
"ChatPrefix": "/prefix2",
"ServerList": [
"chat1",
"chat2"
]
}
],

"Tribes": [
{
"TribeId": "00000",
"SettingToUse": 1,
"Active": false
},
{
"TribeId": "00000",
"SettingToUse": 2,
"Active": false
}
],

"TribeSettings": [
{
"SettingNumber": 1,
"ShowFullTribeLog": false,
"ShowTribeName": false,
"ShowServerName": true,
"ShowTribeId": false,
"EmbedTribeLog": true,
"DiscordChannelId": 0
},
{
"SettingNumber": 2,
"ShowFullTribeLog": false,
"ShowTribeName": false,
"ShowServerName": true,
"ShowTribeId": false,
"EmbedTribeLog": true,
"DiscordChannelId": 0
}
],

"GameCommands": [
{
"Command": "!discord",
"CommandReply": "https://discord.gg/",
"Active": false
},
{
"Command": "rules",
"CommandReply": "These are the rules.",
"Active": false
},
{
"Command": "/ping",
"CommandReply": "Pong!",
"Active": false
}
],

"CustomTagList": [
"ACM[CMD]",
"SERVER: ACM[CMD]"
],

"RconSettings": {
"NoResponceTag": "Server received, But no response!!",
"NoPlayerTag": "No Players Connected",
"ServerRepeatTag": "SERVER:",
"AdminCMDTag": "AdminCmd:",
"TribeLogTag": "Tribe",
"GetChatCmd": "getchat",
"ListPlayersCmd": "ListPlayers",
"ListPlayerCheckTimeInMs": 10000,
"GetChatTimeInMs": 1000,
"PlayerCountCheckTimeInMs": 30000,
"VersionCheckTimeInMs": 3600000,
"RconSendTimeoutInMs": 3000,
"RconReceiveTimeoutInMs": 10000,
"RconConnectionRetrys": 1
},

"EmbeddedTribeLogColorSettings": [
{
"LogType": "killed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "demolished",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "claimed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "unclaimed",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "tamed",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "destroyed",
"LogColor": "ff7400",
"RoleToPing": "none"
},
{
"LogType": "froze",
"LogColor": "d8ddd8",
"RoleToPing": "none"
},
{
"LogType": "downloaded",
"LogColor": "03f413",
"RoleToPing": "none"
},
{
"LogType": "uploaded",
"LogColor": "ff2121",
"RoleToPing": "none"
},
{
"LogType": "starved",
"LogColor": "ff2121",
"RoleToPing": "none"
}
],

"ChatSettings": {
"UseCustomTags": false,
"SendChatToServers": true,
"ShowAdminCommands": false,
"UseGameCommands": false,
"UsePrefixToSendChat": false,
"UseWordReplacementList": false,
"AllServersChatPrefix": "/all"
},

"DiscordSettings": {
"DiscordBotSettings": {
"CommandPrefix": "d!",
"DiscordBotToken": "MonToken",
"IgnoreOtherBots": true,
"ShowDiscordNickName": true
},

"ServerChatSettings": {
  "ChatDiscordChannelID": 600355984829054986,
  "SendServerChatToOwnChannel": false
},

"DiscordChatSettings": {
  "DiscordChatPrefix": "Discord",
  "SendChatToDiscord": true,
  "UsePrefixToSendToDiscord": false,
  "PrefixToSendToDiscord": "/discord"
},

"NotificationSettings": {
  "VersionDiscordChannelId": 600615415160242192,
  "PatchNotesDiscordChannelId": 600615415160242192,
  "JoinLeaveNotificationsDiscordChannelID": 600616230545784844,
  "UseVersionChecker": true,
  "UsePatchNotesChecker": true,
  "UseJoinLeaveNotifications": true,
  "UsePlayerCountChannelUpdater": true,
  "SendJoinLeaveNotificationsToServerOwnChannel": false
},

"AdminCommandSettings": {
  "AdminCommandsDiscordChannelID": 0,
  "SendAdminCommandsToOwnChannel": false
},

"TribeLogSettings": {
  "TribeLogsDiscordChannelID": 0,
  "ShowTribelogs": false,
  "ShowFullTribeLog": false,
  "ShowTribeId": true,
  "ShowTribeName": true,
  "ShowServerName": true,
  "EmbedTribeLog": true,
  "SendTribeLogsToOwnChannel": false
},

"SupportSettings": {
  "SupportDiscordChannelID": 0,
  "UseSupportPrefix": false,
  "PingRoleName": false,
  "ReplyToSupportPing": true,
  "SupportPrefix": "/help",
  "SupportRoleToPing": "rolename",
  "SupportPingReply": "Your support ticket has been sent."
}

}
}

Tribe chat and logs not working

Hello
I installed CrossArkChat on my server recently, which it is fantastic for syncing in-game chat with the discord server. However, now I am trying to sync tribe chat and logs into their individual discord channels. I set up the config (pasted below) with channel IDs and tribe IDs (triple checked), however nothing seems to work. Chat does not sync, tribe events (creature tamed, player died) do not sync, etc. The bot does have access to those channels for posting, and definitely connecting to discord since "All" chat works great. The logs only show global chat messages, nothing more. What am I doing wrong?

I am running Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-76-generic x86_64) for both CrossArkChat and the server

The Discord settings section

"DiscordSettings": {
    "DiscordBotSettings": {
      "CommandPrefix": "d!",
      "DiscordBotToken": "[Expunged]",
      "IgnoreOtherBots": false,
      "ShowDiscordNickName": true
    },
    "ServerChatSettings": {
      "ChatDiscordChannelID": 672298996034961447,
      "SendServerChatToOwnChannel": false
    },
    "DiscordChatSettings": {
      "DiscordChatPrefix": "Discord",
      "SendChatToDiscord": true,
      "UsePrefixToSendToDiscord": false,
      "PrefixToSendToDiscord": "/discord"
    },
    "NotificationSettings": {
      "VersionDiscordChannelId": 0,
      "PatchNotesDiscordChannelId": 0,
      "JoinLeaveNotificationsDiscordChannelID": 0,
      "UseVersionChecker": false,
      "UsePatchNotesChecker": false,
      "UseJoinLeaveNotifications": true,
      "UsePlayerCountChannelUpdater": true,
      "SendJoinLeaveNotificationsToServerOwnChannel": false
    },
    "AdminCommandSettings": {
      "AdminCommandsDiscordChannelID": 0,
      "SendAdminCommandsToOwnChannel": false
    },
    "Tribes": [
      {
        "TribeId": "1803738692",
        "SettingToUse": "1",
        "Active": true
      },
      {
        "TribeId": "1558917733",
        "SettingToUse": "2",
        "Active": true
      }
    ],
    "TribeSettings": [
      {
        "SettingNumber": "1",
        "ShowFullTribeLog": true,
        "ShowTribeName": true,
        "ShowServerName": true,
        "ShowTribeId": true,
        "EmbedTribeLog": true,
        "DiscordChannelId": 673932033248198677
      },
      {
        "SettingNumber": "2",
        "ShowFullTribeLog": true,
        "ShowTribeName": true,
        "ShowServerName": true,
        "ShowTribeId": true,
        "EmbedTribeLog": true,
        "DiscordChannelId": 673939118014726165
      }
    ],
    "TribeLogSettings": {
      "TribeLogsDiscordChannelID": 0,
      "ShowTribelogs": true,
      "ShowFullTribeLog": true,
      "ShowTribeId": true,
      "ShowTribeName": true,
      "ShowServerName": true,
      "EmbedTribeLog": true,
      "SendTribeLogsToOwnChannel": true
    },
    "SupportSettings": {
      "SupportDiscordChannelID": 0,
      "UseSupportPrefix": false,
      "PingRoleName": false,
      "ReplyToSupportPing": true,
      "SupportPrefix": "/help",
      "SupportRoleToPing": "rolename",
      "SupportPingReply": "Your support ticket has been sent."
    }
  }```

Thanks

Cross ark 1.9(discord version) Problem

With Cross Ark 1.8(discord version) i didnt have this problem.

If i sent a message in discord : ok guys i am off if you need me just use the help command
i will receive the following message in discord :

Ragnarok: (natsu): ok guys i am off if you need me just use the help command
Island: (natsu): ok guys i am off if you need me just use the help command
Center: (natsu): ok guys i am off if you need me just use the help command
Aberration: (natsu): ok guys i am off if you need me just use the help command
Scorched: (natsu): ok guys i am off if you need me just use the help comman

my config :
"DiscordSettings": {
"DiscordChannelID": discord channel id here,
"TribeLogsDiscordChannelID": tribe log channel id here,
"AdminCommandsDiscordChannelID": 0000,
"SupportChannelID": a support channel id here,
"prefix": "d!",
"DiscordChatPrefix": "Admin",
"DiscordToken": "bot token here removed duo tho this problem",
"ShowAdminCommands": false,
"SendAdminCommandsToOwnChannel": false,
"ShowChatPrefixInDiscord": true,
"ShowTribelogsInChat": true,
"SendTribeLogsToOwnChannel": true,
"SendServerChatToOwnChannel": false,
"UsePrefixToSendChat": true,
"UseSupportPrefix": true,
"PingRoleName": true,
"PrefixToSendChat": "/cc",
"SupportPrefix": "/help",
"SupportRoleToPing": "Administrator"
}

Bot token incorrect error?

I'm setting up CrossArkChat in my server, and as far as I know I've filled in all the required fields in the _configuration.json, but when I launch the program I get this error:
08:17:42 [Warning] Discord: System.ArgumentException: A Bot token must be at least 58 characters in length. Ensure that the Bot Token provided is not an OAuth client secret. (Parameter 'token') at Discord.TokenUtils.ValidateToken(TokenType tokenType, String token) at Discord.Rest.BaseDiscordClient.LoginInternalAsync(TokenType tokenType, String token, Boolean validateToken)
08:17:42 Please close CrossArkChat and check to make sure your DiscordBotToken is correct in the '_configuration.json' file found in the CrossArkChats root directory in the Config folder.

I don't understand why the bot token should be 58 characters long, mine is 32 chars long.

"Failed with result 'start-limit-hit'."

Hi, i'm having issues starting the service, i'm getting the following back when running command
sh-4.3$ sudo systemctl status CrossArkChat.service

\u25cf CrossArkChat.service - ARK Cross Chat Service
   Loaded: loaded (/lib/systemd/system/CrossArkChat.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Thu 2019-04-18 16:28:33 BST; 27s ago
  Process: 6905 ExecStop=/usr/bin/killall -TERM srcds_linux (code=exited, status=1/FAILURE)
  Process: 6903 ExecStart=/home/desktop/CrossArkChat/CrossArkChat (code=exited, status=203/EXEC)
 Main PID: 6903 (code=exited, status=203/EXEC)

Apr 18 16:28:28 ns300658 systemd[1]: CrossArkChat.service: Unit entered failed state.
Apr 18 16:28:28 ns300658 systemd[1]: CrossArkChat.service: Failed with result 'exit-code'.
Apr 18 16:28:33 ns300658 systemd[1]: CrossArkChat.service: Service hold-off time over, scheduling restart.
Apr 18 16:28:33 ns300658 systemd[1]: Stopped ARK Cross Chat Service.
Apr 18 16:28:33 ns300658 systemd[1]: CrossArkChat.service: Start request repeated too quickly.
Apr 18 16:28:33 ns300658 systemd[1]: Failed to start ARK Cross Chat Service.
Apr 18 16:28:33 ns300658 systemd[1]: CrossArkChat.service: Unit entered failed state.
Apr 18 16:28:33 ns300658 systemd[1]: CrossArkChat.service: Failed with result 'start-limit-hit'.

I'm afraid though i'm technically minded, i'm not overly comfortable on linux, and i'm quite lost as to how to approach this issue. I have double check and fixed some syntax issues in the config, and i think it looks clean now. Any ideas?

Thanks in advance!

Can't start Cross Ark Chat - enter your bot's token into the `_configuration.json`

hello, i got this message :

image

this my configuration files :

what do u think is wrong please :

//For all info on config visit https://github.com/spikeydragoon/Cross-Ark-Chat and look at the readme file as it goes over all config information.
// DO NOT change anything in the Rcon settings unless you know what you are doing!!!
{
  "ApplicationSettings": {
    "VersionCheckUrl": "https://raw.githubusercontent.com/spikeydragoon/Cross-Ark-Chat/master/version.txt",
    "LogErrors": true,
    "UseDiscord": true
  },

  "Servers": [
    {
      "Map": "Extinction",
      "IP": "192.168.1.25",
      "RconPort": 27020,
      "QueryPort": 0,
      "Password": "Password",
      "Prefix": "/map",
      "Active": true,
      "ServerChannelId": 3XXXXXXXXXXXXXXXXXX4
    },
    {
      "Map": "Map",
      "IP": "0.0.0.0",
      "RconPort": 0,
      "QueryPort": 0,
      "Password": "Password",
      "Prefix": "/map",
      "Active": false,
      "ServerChannelId": 0
    }
  ],

  "TribeIDs": [
    {
      "TribeId": "00000",
      "Active": false,
      "TribeDiscordId": 0
    },
    {
      "TribeId": "00000",
      "Active": false,
      "TribeDiscordId": 0
    }
  ],

  "GameCommands": [
    {
      "Command": "!discord",
      "CommandReply": "https://discord.gg/",
      "Active": false
    },
    {
      "Command": "rules",
      "CommandReply": "These are the rules.",
      "Active": true
    },
    {
      "Command": "/ping",
    "CommandReply": "Pong!",
      "Active": true
    }
  ],

  "CustomTagList": [
    "ACM[CMD]",
    "SERVER: ACM[CMD]"
  ],

  "RconSettings": {
    "NoResponceTag": "Server received, But no response!!",
    "NoPlayerTag": "No Players Connected",
    "ServerRepeatTag": "SERVER:",
    "AdminCMDTag": "AdminCmd:",
    "TribeTag": "Tribe",
    "GetChatCmd": "getchat",
    "ListPlayersCmd": "ListPlayers",
    "ListPlayerCheckTimeInMs": 10000,
    "GetChatTimeInMs": 5,
    "RconSendTimeoutInMs": 3000,
    "RconReceiveTimeoutInMs": 10000,
    "RconConnectionRetrys": 1
  },

  "PlayerNotificationsSettings": {
    "PlayerJoinStart": "Player",
    "PlayerJoinMiddle": "joined the",
  "PlayerJoinEnd": "server",
    "PlayerLeftStart": "Player",
    "PlayerLeftMiddle": "left the",
    "PlayerLeftEnd": "server"
  },

  "ChatSettings": {
    "ShowAdminCommands": false,
    "SendAdminCommandsToOwnChannel": false,
    "ShowTribelogsInChat": false,
    "UsePrefixToSendChat": false,
    "UseCustomTags": false,
    "LogChat": true,
    "LogAdminCommands": true,
    "LogTribeLogs": true,
    "UseGameCommands": false,
    "PrefixToSendAllServers": "/all"
  },

  "DiscordSettings": {
    "DiscordChannelID": 3XXXXXXXX74,
    "TribeLogsDiscordChannelID": 3XXXXXXXX74,
    "AdminCommandsDiscordChannelID3XXXXXXXX743XXXXXXXX74,
    "SupportChannelID": 3XXXXXXXX74,
    "JoinLeaveNotificationsDiscordChannelID": 3XXXXXXXX74,
    "prefix": "d!",
    "DiscordChatPrefix": "Discord",
    "DiscordToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "ShowChatPrefixInDiscord": true,
    "SendTribeLogsToOwnChannel": true,
    "SendServerChatToOwnChannel": true,
    "UseSupportPrefix": true,
    "UseJoinLeaveNotifications": true,
    "SendJoinLeaveNotificationsToServerOwnChannel": true,
    "UseWordReplacementList": true,
    "PingRoleName": true,
    "ReplyToSupportPing": true,
    "SendChatToDiscord": true,
    "SupportPrefix": "/help",
    "PrefixToSendToDiscord": "/discord",
    "SupportRoleToPing": "rolename",
    "SupportPingReply": "Your support ticket has been sent."
  }
}

Upgrade and no way to start

Hello there,
so i m using Cross ark chat on ubuntu 18.04 LTS
so i update and now i can't start mu bot.

i found this error on the log files :


Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at System.Boolean.Parse(String value)
   at CrossArkChat.CrossDiscordChatHandler..ctor(DiscordSocketClient discord, IConfigurationRoot config, LoggingService log, GeneralSettings settings)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at CrossArkChat.Startup.RunAsync()
   at CrossArkChat.Startup.RunAsync(String[] args)
   at CrossArkChat.Program.<Main>(String[] args)

what i missed please

Do not select server when only having one

I run Cross-Ark-Chat as a bridge between discord and the ark server.

When sending commands to the server like 'saveworld' the discord bot asks which server I would like to run that on - which is obvious as I just have one... Is it possible to skip that question?

Unable to get it working :(

I'm not sure what I am doing wrong. But I am unable to get this to work correctly. I'd be happy to donate if I could use this correctly. Do you offer any setup help?

Thanks in advance.

Local Ark Chat

Is is possible to disable the local Ark chat from showing up in both Discord and Cross Ark?

Thanks

Error msg from discord writing

hi i use this and it working fine for me to write fron discord but not for anoter admin.
we are both admins on the discord and only admins should be able to write from discord.
i get this. when the other admin write but not when i write.

[Error] Gateway: System.NullReferenceException: Object reference not set to an instance of an object.
at Discord.WebSocket.SocketGuild.AddOrUpdateUser(GuildMember model)
at Discord.WebSocket.DiscordSocketClient.ProcessMessageAsync(GatewayOpCode opCode, Nullable`1 seq, String type, Object payload)

Thanks
Lunnis

Add option for random messages in timed commands

Would love to see this, right now is use a linux command line rcon which reads random lines from a file and broadcasts them to the server.

"TimedCommands": [
{
      "Name": "Command4",
      "Servers": [
        "ServerNameTag1",
        "ServerNameTag2"
      ],
      "Commands": [
        {
          "Command": select from RandomMessages,
          "Type": "Broadcast"
        }
      ],
      "Active": true,
      "Frequency": "minute",
      "Timespan": "20",
      "TimeOffset": "00:00:00"
    },
],

  "RandomMessages": [
    {
      "Name": "Discord",
      "Message": "https://discord.gg/",
      "Active": true
    },
    {
      "Name": "Website",
      "Message": "https://github.com/",
      "Active": true
    },
    {
      "Name": "Votelink",
      "Message": "https://ark-servers.net/",
      "Active": false
    }
  ]

Ark -> Discord not working in background

Hi @spikeydragoon great job with this tool, it's very useful !

I noticed an issue when running in background mode (nohup ./CrossArkDiscord &)
The messages are forwarded from Discord to ARK cluster, but it's not working from ARK cluster to Discord.
But when i run in foreground everything is fine.

As a temporary fix I use the screen command : https://doc.ubuntu-fr.org/screen
I am able to run CrossArk in foreground in a detachable virtual terminal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.