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

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


Post New Thread Reply   
 
Thread Tools Display Modes
thEsp
BANNED
Join Date: Aug 2017
Old 12-30-2020 , 12:18   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #61

@nG_getwreck https://forums.alliedmods.net/showpo...7&postcount=54
thEsp is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 12-31-2020 , 09:50   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #62

Quote:
Originally Posted by thEsp View Post
I'm using "DISCORD.JS 11.5.1" and I'm hosting both in same machine, so what's the problem here?
__________________
nG_getwreck is offline
thEsp
BANNED
Join Date: Aug 2017
Old 12-31-2020 , 10:28   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #63

You have definitely not installed this extension properly. Please undo everything and redo all the steps correctly.

Edit: now that discord has implied some limitations, the bot activity presence feature is pretty much useless. It will be changed every 60 seconds otherwise the bot is going to be automatically blocked, thus the presence is always late.

Last edited by thEsp; 01-01-2021 at 10:22.
thEsp is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-01-2021 , 18:49   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #64

Quote:
Originally Posted by DruGzOG View Post
Make sure your presence rate is above a minute
How do i do this?
Mark.uG is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 01-01-2021 , 20:04   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #65

Quote:
Originally Posted by Mark.uG View Post
How do i do this?
Update your plugin? He set a task for 60 seconds.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 07-30-2022 , 16:13   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #66

Having issues getting the bot to run.

PHP Code:
root@:~# npm install [email protected]
npm WARN deprecated snekfetch@3.6.4: use node-fetch instead
npm WARN deprecated discord
.js@11.5.1no longer supported
npm WARN deprecated 
@discordjs/uws@10.149.0Package no longer supportedContact Support at https://www.npmjs.com/suppo                  rt for more info.

added 8 packages, and audited 9 packages in 10s 

Last edited by iclassdon; 08-05-2022 at 00:54.
iclassdon is offline
Send a message via MSN to iclassdon
Inpu
New Member
Join Date: Dec 2022
Old 12-24-2022 , 03:48   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #67

Thanks, it's working great ! I've modified it a little to add join/leave event. I'm having so much fun with this.

Few things to note for people trying to install it :

- Make sure "Message intent" is checked in the discord bot

- Do not use the last version of CromChat (2021) because it will not display the message from discord to game properly, get the last one from 2018

- That may only be me but I struggled to understand that "targetChannels" in server.js should be the ID of the channel on discord and not the name

- On line 57 in server.js, I've replaced "msg" with "msg.content" to get the message from discord to game

Thanks again !!
Inpu is offline
thEsp
BANNED
Join Date: Aug 2017
Old 01-05-2023 , 13:18   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #68

Quote:
Having issues getting the bot to run.
That just ensures the changes made to discord's API don't affect this plugin. The last time I tried (2/3 months ago) it worked fine so I don't see the issue.

Quote:
- That may only be me but I struggled to understand that "targetChannels" in server.js should be the ID of the channel on discord and not the name

- On line 57 in server.js, I've replaced "msg" with "msg.content" to get the message from discord to game
Noted. I'm not sure why it even worked like that but it's changed now.
thEsp is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 01-06-2023 , 09:39   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #69

Thanks. I was able to get it to work with the latest discord.js.

I ended up replacing all the deprecated code inside server.js it runs really smooth thank you for this.
iclassdon is offline
Send a message via MSN to iclassdon
Zergcito
New Member
Join Date: Jul 2011
Location: Lima - Perú
Old 01-31-2023 , 21:41   Re: Cross-Game Chatter v1.6 [Discord <-> AMXX]
Reply With Quote #70

Hello, did anyone get this error?

PHP Code:
/root/node_modules/discord.js/src/client/ClientDataManager.js:81
        guild
.channels.set(channel.idchannel);
                                   ^

TypeErrorCannot read property 'id' of undefined
    at ClientDataManager
.newChannel (/root/node_modules/discord.js/src/client/ClientDataManager.js:81:36)
    
at Guild.setup (/root/node_modules/discord.js/src/structures/Guild.js:206:68)
    
at GuildCreateHandler.handle (/root/node_modules/discord.js/src/client/websocket/packets/handlers/GuildCreate.js:12:15)
    
at WebSocketPacketManager.handle (/root/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
    
at WebSocketConnection.onPacket (/root/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
    
at WebSocketConnection.onMessage (/root/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
    
at WebSocket.onMessage (/root/node_modules/ws/lib/event-target.js:120:16)
    
at WebSocket.emit (events.js:198:13)
    
at Receiver.receiverOnMessage (/root/node_modules/ws/lib/websocket.js:789:20)
    
at Receiver.emit (events.js:198:13
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 
__________________
Zergcito is offline
Send a message via MSN to Zergcito
Reply



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 02:44.


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