Raised This Month: $91 Target: $400
 22% 

[Any] Source Chat Relay [Discord <=> Ingame]


Post New Thread Reply   
 
Thread Tools Display Modes
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 10-20-2019 , 14:05   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #191

Quote:
Originally Posted by Dongorongoro View Post
Gotta admit, I found the setup a bit confusing.

The first snag I hit was getting the Discord bot token. I'm unfamiliar with Discord bots and it wasn't immediately clear that the bot token and client secret were different things. The authentication failure error message helped me figure it out pretty quickly, but it'd be nice to explicitly outline things; something like

The second problem I ran into was not realizing that you can't use private messages to configure the bot on Discord. Unlike the first problem, I sat there scratching my head for a couple minutes; the link to your troubleshooting page is broken and the error message "Could not fetch guild: HTTP 404 Not Found, {"message": "404: Not Found", "code": 0}" was very unhelpful. I only figured it out after reading through the thread and finding someone else post this problem. It'd be appreciated if you explicitly said to control it in a text channel rather than through PM.

The last problem I had was that embeds are used to configure the server through Discord, even when SimpleMessage = true. I don't have link previews enabled, so the only thing I saw was this:

Thankfully I had problems with embeds not showing up from a silly Discord game bot before, so I figured this one out pretty quick, too. I feel like this one could be really frustrating for someone who has link previews disabled and hasn't run into this kinda thing before; ya should really mention that having link previews turned on is a requirement to set it up!

I really dislike having link previews turned on, and I'd very much appreciate a text-only way to configure the bot. Many thanks for making the messages themselves not require embeds though!

The service thingy didn't work for me either, failing with Running it inside of screen seems to work just fine.

Lastly, I'd really love ya forever if the strict reliance on MySQL was dropped. Allowing the use of PostgreSQL instead would be great. I feel like some others would appreciate something like SQLite or flat files so they didn't need to run an entire external database, too. If I knew the slightest bit of Go I'd do it myself; it brings me great pain running multiple RDBMSes especially since it seems to only be storing configuration data. I'd be happy to help you out with testing and writing the SQL for Postgres if you'd be willing to implement the logic in the server itself. The pq library says it's compatible with the database/sql module you seem to be using?

Hopefully all my complaining doesn't discourage ya, I must admit you've made a nice little tool here! Thank ya much!
Thanks, I'll update the documentation accordingly with those suggestions. One of the reasons why I didn't go with the local file is that the official MySQL lib requires cgo linking which I wanted to avoid.

And as far as postgre, I have no idea if the schema will even align between the two, I only used mysql because it's one of the most common officials supported driver in sourcemod.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 10-21-2019 , 20:09   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #192

v2.1.1 is now available patching a potential data race condition that may cause crashes with the relay server.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 11-02-2019 , 20:39   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #193

Out of curiosity, how many users are actually accessing the table from another script? I'm debating whether to implement a database migration to local file storage.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
kaldun
Junior Member
Join Date: Sep 2012
Location: RU
Old 11-04-2019 , 20:40   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #194

Hi bud's.

Is it possible to run on herokuDOTcom? And How ?
kaldun is offline
Send a message via ICQ to kaldun Send a message via Skype™ to kaldun
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 11-04-2019 , 20:48   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #195

Quote:
Originally Posted by kaldun View Post
Hi bud's.

Is it possible to run on herokuDOTcom? And How ?
Perhaps if you clone the source code

https://devcenter.heroku.com/article...tarted-with-go
https://www.heroku.com/go
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-17-2019 , 02:51   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #196

Attempted to run this on the latest dev build along with sockets, to no avail does the server start. Got a crash dump from throttle (thanks to some members on discord), and to no avail can we figure out the issue.

Any suggestions?
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 11-17-2019 , 07:44   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #197

Quote:
Originally Posted by DruGzOG View Post
Attempted to run this on the latest dev build along with sockets, to no avail does the server start. Got a crash dump from throttle (thanks to some members on discord), and to no avail can we figure out the issue.

Any suggestions?
I've pinged you with a socket rebuild, it's also posted on the socket thread.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog


Last edited by RumbleFrog; 11-17-2019 at 08:30.
RumbleFrog is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old Today , 12:57   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #198

Hi RumbleFrog, can it be done external mysql?
Lucky_luck is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:37.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode