Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 817 Bytes
#! ========================================
#! Invite
handler = (msg, match, H) ->
H.client.generateInvite([
"ADMINISTRATOR", "KICK_MEMBERS", "BAN_MEMBERS"
"EMBED_LINKS", "READ_MESSAGE_HISTORY", "SEND_MESSAGES"
"MANAGE_MESSAGES", "ATTACH_FILES"
]).then (link) ->
msg.reply "Invite me to other servers using
the following link: \n #{link}"
module.exports = {
name: "Invite"
regex: /^(invite|link)(\s+|$)/i
handler: handler
help:
short: "-h invite ::
Replies with the URL to invite me to other servers."
long: """
```asciidoc
=== Help for Invite ===
*Aliases*: invite, link
-h invite :: Replies with the URL to invite me to other servers.
```
"""
}
You can’t perform that action at this time.