Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request #1

Open
DelPyth opened this issue Nov 1, 2018 · 4 comments
Open

Request #1

DelPyth opened this issue Nov 1, 2018 · 4 comments

Comments

@DelPyth
Copy link

DelPyth commented Nov 1, 2018

Mind making a working example of how to use this?

@Kaytuu
Copy link

Kaytuu commented Nov 14, 2020

Any plans to continue this? This is the only ahk library for discord that I can find and I'm interested but it'd be nice to see some example usage

@G33kDude
Copy link
Owner

To be honest, I'm not sure at this point. The library is built on a websocket implementation that I am no longer happy with, and I will not have time to devote to further development for some months yet. It's also pretty far down the backlog of other projects, like Chrome.ahk and CloudAHK.

@lukeacat
Copy link

#Include <Discord>

class Cockbot extends Discord {
	OP0_MESSAGE_CREATE(data) { 		
		message := data.content
		
		if(message == "!help") {
			this.SendMessage(data.channel_id, "cock bot v1 epic fortnite")
		}
	}
}

client := New Cockbot("put ur token here")

I made a example

@kevindevm
Copy link

@lukeacat

thanks that amazing example.
do u know any other events names or where i can get it? like where did you get the name for the event? like "OP0_MESSAGE_CREATE"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants