-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.coffee
32 lines (29 loc) · 901 Bytes
/
about.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! ========================================
#! About
Discord = require 'discord.js'
handler = (msg, match, H) ->
chosenBlob = H.config.about.blobs.choose()
if Array.isArray chosenBlob then chosenBlob = chosenBlob.choose()
embed = new Discord.RichEmbed()
.setColor '#448aff'
.setTitle "Haruka #{H.version}"
.setDescription H.config.about.description
.addField "Links", H.config.about.links
.setFooter "#{chosenBlob}"
.setTimestamp H.client.readyAt
msg.channel.send embed
module.exports = {
name: "About"
regex: /^(about)(\s+|$)/i
handler: handler
help:
short: "-h about ::
General stuff about me."
long: """
```asciidoc
=== Help for About ===
*Aliases*: None.
-h about :: Prints some info about me, Haruka!
```
"""
}