Raised This Month: $12 Target: $400
 3% 

Cross-Game Chatter v1.6 [Discord <-> AMXX]


Post New Thread Reply   
 
Thread Tools Display Modes
thEsp
BANNED
Join Date: Aug 2017
Old 07-08-2020 , 11:54   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #51

I fixed it now. Apparently I didn't realize that MAX_MOTD_LENGTH was defined on 1.8.3.
thEsp is offline
JkDev
New Member
Join Date: Jul 2020
Location: Argentina
Old 07-08-2020 , 12:02   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #52

Quote:
Originally Posted by thEsp View Post
I fixed it now. Apparently I didn't realize that MAX_MOTD_LENGTH was defined on 1.8.3.

I already compile, thank you very much
JkDev is offline
F0X
New Member
Join Date: Jul 2020
Old 07-15-2020 , 01:48   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #53

Hey, does anyone know how to add this bot to herokuapp?


Some tests:

Quote:
C:\BOT\server.js:43
targetChannels.forEach(channel => bot.channels.get(channel).send(message));
^

TypeError: Cannot read property 'send' of undefined
at C:\BOT\server.js:43:64
at Array.forEach (<anonymous>)
at Socket.<anonymous> (C:\BOT\server.js:43:20)
at Socket.emit (events.js15:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)

C:\BOT>goto start
The bot starts well but after a moment it shows that, any suggestions?

Last edited by F0X; 07-15-2020 at 02:13.
F0X is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-15-2020 , 04:35   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #54

That function was deprecated (actually removed) in the latest versions of discord.js therefore you have to use version 11.5.1 (as specified on #5). Also you have to use it on the same root server as HLDS.

Last edited by thEsp; 07-15-2020 at 04:37.
thEsp is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 12-26-2020 , 14:25   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #55

How can i add more then 1 server to 2 diffen channels?

I tryed make 2 installs but does not seem to work.

Example

Server 1 to Discord Channel 1 => Bot1
Server 2 to Discord Channel 2 => Bot2

Nevermind got it to work.

Last edited by Mark.uG; 12-26-2020 at 15:27.
Mark.uG is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 12-26-2020 , 21:56   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #56

The only issue im having is after a certain amount of time the Bot will drop from being active to offline but the server chats still work but does not show Playing Map or player count anymore.

Offline Bot
https://ibb.co/Hhv6qMc

Online Bot
https://ibb.co/jZjKqvw

Last edited by Mark.uG; 12-26-2020 at 22:27.
Mark.uG is offline
thEsp
BANNED
Join Date: Aug 2017
Old 12-28-2020 , 08:20   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #57

I really don't know what's up with that. My only clue is that discord's API is unable to handle all the changes within a short time. I had this issue myself but having a 1 second delay seemed to solve it. Did you change it? If not then I'll try to fix it tonight.

Last edited by thEsp; 12-28-2020 at 08:29.
thEsp is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 12-28-2020 , 18:35   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #58

Quote:
Originally Posted by thEsp View Post
I really don't know what's up with that. My only clue is that discord's API is unable to handle all the changes within a short time. I had this issue myself but having a 1 second delay seemed to solve it. Did you change it? If not then I'll try to fix it tonight.
I did not try that yet.

Maybe needs some kind of Refresh or update if offline?

Last edited by Mark.uG; 12-28-2020 at 18:37.
Mark.uG is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-28-2020 , 23:09   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #59

Make sure your presence rate is above a minute
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 12-30-2020 , 06:20   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #60

Hello, I got an error when using this plugin

PHP Code:
/home/debian/discordbot/server.js:43
                                targetChannels
.forEach(channel => bot.channels.get(channel).send(message));
                                                                                           ^

TypeErrorCannot read property 'send' of undefined
    at targetChannels
.forEach.channel (/home/debian/discordbot/server.js:43:64)
    
at Array.forEach (<anonymous>)
    
at Socket.<anonymous> (/home/debian/discordbot/server.js:43:20)
    
at Socket.emit (events.js:198:13)
    
at addChunk (_stream_readable.js:288:12)
    
at readableAddChunk (_stream_readable.js:269:11)
    
at Socket.Readable.push (_stream_readable.js:224:10)
    
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17
IN AMXX

PHP Code:
[AMXXPlugin ("amx_crossgamechatter.amxx"is setting itself as failed.

[
AMXXPlugin says: [CriticalCross-Game ChatterFailed to initialze the (socketserver.

 [
AMXXRun time error 1 (plugin "amx_crossgamechatter.amxx") - forced exit 
__________________
nG_getwreck 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 08:19.


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