View Single Post
Author Message
Deathknife
Senior Member
Join Date: Aug 2014
Old 01-06-2017 , 15:45   [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #1

About:
Provides an API that allows plugins to:
- Listen to messages on Channel
- Send Messages to a Channel
- Get Guilds
- Get Channels for a Guild

It's barebone now, just the basics. If people are interested I can add more features. Check github page for some documentation.

Bot token can be obtained from https://discordapp.com/developers/applications/me

Dependencies:

SteamWorks
smjansson

Changelog:
Quote:
v0.1.12
* Fixed Guild Channels list error 429 support
* Made requests retry in two seconds if it fails to create HTTP request. This usually happens when server just launched.

v0.1.10
- Removed unnecessary includes that are not used. (cstrike include prevented it from running on TF2) Should be fine now
+ Added support if discord returns too many requests. Running plugin on multiple servers should no longer be an issue.

v0.1.1
+ Added Support for x-rate-limit (not global yet)

v0.1.0
+ Initial Release
Github Repository

EXAMPLES (Call admin, server announcements from discord)
Attached Files
File Type: zip discord_api.zip (38.1 KB, 3749 views)
__________________

Last edited by Deathknife; 01-10-2017 at 15:30.
Deathknife is offline