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

[ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17


Post New Thread Reply   
 
Thread Tools Display Modes
vem882
AlliedModders Donor
Join Date: Jun 2009
Old 01-10-2017 , 07:32   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels)
Reply With Quote #11

Verry nice plugin thx for that!.
Bud i have error then I try to use sm_getguilds.
Quote:
L 01/10/2017 - 13:29:10: [SMJSON] Error in line 1, col 104: end of file expected near 'ti'
L 01/10/2017 - 13:29:10: [SM] Exception reported: Invalid <Object> handle 0 (error 4)
L 01/10/2017 - 13:29:10: [SM] Blaming: discord_api.smx()
L 01/10/2017 - 13:29:10: [SM] Call stack trace:
L 01/10/2017 - 13:29:10: [SM] [0] json_array_size
L 01/10/2017 - 13:29:10: [SM] [1] Line 76, discord/GetGuilds.sp::GetGuildsData_Data()
L 01/10/2017 - 13:29:10: [SM] [3] SteamWorks_GetHTTPResponseBodyCallback
L 01/10/2017 - 13:29:10: [SM] [4] Line 31, discord/GetGuilds.sp::GetGuildsData()
vem882 is offline
Deathknife
Senior Member
Join Date: Aug 2014
Old 01-10-2017 , 13:10   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels)
Reply With Quote #12

I have added support for error 429(wait and then send again, until it finally succeeds). Running plugin on multiple servers should not be an issue at all now.

Quote:
Originally Posted by MrDanne View Post
Nice plugin, looking forward to try this on my server.

Do you have any plan on making it work with sourcebans++ ?
Does it conflict with sourcebans++ or you mean some sort of integration? Could you elaborate?

Quote:
Originally Posted by vem882 View Post
Verry nice plugin thx for that!.
Bud i have error then I try to use sm_getguilds.
Replied on github issue.
__________________
Deathknife is offline
Xenoadria
Member
Join Date: Oct 2016
Old 01-10-2017 , 13:22   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #13

Im trying to make a web socket connection, and somehow I am having a problem.
Writing that JS snippet in Chrome im getting the following error:
Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at <anonymous>:19:4

Writing that JS snippet in Firefox im getting the following error:
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

What am I doing wrong ?

Edit:
The issue made on github is made by my friend with whom I am working with atm.

Last edited by Xenoadria; 01-10-2017 at 13:27.
Xenoadria is offline
Deathknife
Senior Member
Join Date: Aug 2014
Old 01-10-2017 , 13:53   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #14

Quote:
Originally Posted by Xenoadria View Post
Im trying to make a web socket connection, and somehow I am having a problem.
Writing that JS snippet in Chrome im getting the following error:
Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at <anonymous>:19:4

Writing that JS snippet in Firefox im getting the following error:
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

What am I doing wrong ?

Edit:
The issue made on github is made by my friend with whom I am working with atm.
Replied to your issue
__________________
Deathknife is offline
Xenoadria
Member
Join Date: Oct 2016
Old 01-10-2017 , 16:32   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #15

I just wanted to say, that we (Flegmoar and I ) are really thankfull for your help. Not many would help like you did. Respect man. Once again, this plugin is awesome i can't even imagine what kind of a blast would it be when there are improvements in the future. Great job, and if we can help you out somehow even if it's just testing feel free to contact me.

Best regards
Xenoadria is offline
MrDanne
Member
Join Date: Jan 2017
Location: Stockholm, Sweden
Old 01-11-2017 , 03:24   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #16

I was thinking of be able to kick or ban players via Discord for example.
Maybe pull a list of latest bans/kicks.
MrDanne is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-12-2017 , 05:21   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels)
Reply With Quote #17

Quote:
Originally Posted by Deathknife View Post
I have added support for error 429(wait and then send again, until it finally succeeds).
You should do the same for 500, it's rare but it happends.
__________________
zipcore is offline
MrDanne
Member
Join Date: Jan 2017
Location: Stockholm, Sweden
Old 01-15-2017 , 12:19   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels)
Reply With Quote #18

Quote:
Originally Posted by Deathknife View Post
I have added support for error 429(wait and then send again, until it finally succeeds). Running plugin on multiple servers should not be an issue at all now.


Does it conflict with sourcebans++ or you mean some sort of integration? Could you elaborate?


Replied on github issue.
I use zipcores plugin instead and it works with sourcebans++
MrDanne is offline
spot
Senior Member
Join Date: May 2009
Old 01-24-2017 , 05:26   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #19

Supports multieple servers? Let's say you have Retake #1 and Retake #2 , will the reply go to both servers running the plugin? Or do you have to have 1 channel in discord pr. server? Hope you understand what i mean ;)
spot is offline
seretakes
Junior Member
Join Date: Oct 2015
Old 01-24-2017 , 07:11   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #20

Wow.
Great work Deathknife.

Been seeing alot of small Discord integrated plugins here lately, i guess they have you to thank

Awsome work!
__________________
seretakes is offline
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 10:42.


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