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

[CSGO+Discord]10man Discord channel switching


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ferguson
Junior Member
Join Date: Dec 2017
Old 12-21-2017 , 17:14   [CSGO+Discord]10man Discord channel switching
Reply With Quote #1

I have a private 10man server we use among a large group of friends after we get done playing Battlegrounds, more for fun than anything. What I'd like to do is find a plugin that contains a list of Discord ID's linked to Steam ID's in game, and when the game goes live, the plugin sees who is on each team, then tells a Discord bot to move the corresponding users to the correct channel in Discord automatically (instead of having to manually sort everyone out then tabbing back in) then moves everyone back to the lobby when the game is finished. It sounds easy in theory, but I wouldn't know where to start since I've never coded anything for SM or Discord before..

And yes, I know, we can just use the in-game chat, but why use that when everyone uses Discord anyways?

Last edited by ferguson; 12-21-2017 at 17:15.
ferguson is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 12-22-2017 , 02:59   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #2

If you need to integrate discord into a sourcemod plugin, your best option would be to use Deathknife's Discord API, although I'm not too sure whether that has the functionality needed to do what you're asking (get steam ID of discord users, move to voice channel)
hmmmmm is offline
ferguson
Junior Member
Join Date: Dec 2017
Old 01-03-2018 , 02:37   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #3

Quote:
Originally Posted by hmmmmm View Post
If you need to integrate discord into a sourcemod plugin, your best option would be to use Deathknife's Discord API, although I'm not too sure whether that has the functionality needed to do what you're asking (get steam ID of discord users, move to voice channel)
Sorry for the late reply. Discord has the ability to link your Steam accounts so that may be an easier way... not sure how the fetching process would work easily. In theory it would be basic.. but I'm sure the coding is difficult.. just need it to switch users to one of two predetermined channels, really.
ferguson is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 01-03-2018 , 17:10   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #4

You're better off running a discord bot on it's own means and funnel informations through it. Pretty sure the Discord API in SourcePawn isn't the best, and there is a lot of functionality missing, unless you want to manually write out the HTTP requests
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

Last edited by OSWO; 01-03-2018 at 17:11.
OSWO is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-04-2018 , 16:23   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #5

So far I know you can't get the steamid by the discord API even if they are linked.
__________________
zipcore is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 01-05-2018 , 15:58   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #6

You can, you need to have a valid oAuth with the scope “connections” in order to pull steam data from the user.

https://discordapp.com/developers/do...-oauth2-scopes
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

Last edited by OSWO; 01-05-2018 at 15:59.
OSWO is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-06-2018 , 07:09   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #7

Looks like it'S not...yet

https://discord.js.org/#/docs/main/s...o=integrations
Partial server integrations (not yet implemented)

EDIT: https://github.com/RogueException/Di...Net/issues/901
__________________

Last edited by zipcore; 01-06-2018 at 07:11.
zipcore is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 01-06-2018 , 07:37   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #8

Quote:
Originally Posted by zipcore View Post
Looks like it'S not...yet

https://discord.js.org/#/docs/main/s...o=integrations
Partial server integrations (not yet implemented)

EDIT: https://github.com/RogueException/Di...Net/issues/901
You're trying to pull data from a separate entity, using d.js which you cannot do, pulling data from oAuth is allowed, basically on the site you need a "Sign in through Discord" and go on from there.
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

Last edited by OSWO; 01-06-2018 at 07:39.
OSWO is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-06-2018 , 09:19   Re: [CSGO+Discord]10man Discord channel switching
Reply With Quote #9

Thats what I meant, so what he requests is not possible. Only if the users logged in via a website once.
__________________
zipcore 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 13:17.


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