npm.io
1.1.3 • Published 6 years ago

re-discord

Licence
MIT
Version
1.1.3
Deps
9
Size
266 kB
Vulns
0
Weekly
0
Stars
10

re-discord

Developing:

npm install -g esy
git clone <this-repo>
esy install
esy build

Running PingBot Example:

After building the project, you can run the main binary that is produced.

export DISCORD_BOT_TOKEN={INSERT_TOKEN}
esy x PingBot.exe

Documentation:

Supported Events:
onReady
onMessage(message)
onGuildMemberAdd(guild, member)
onGuildMemberRemove(guild, member)
onReactionAdd(message)
onReactionRemove(message)
Sending a message
Channel.send = (content: string, channel: Channel.t)
Message.reply = (content: string, message: Message.t)
Message.react = (emoji: string, message: Message.t)
Future Plans
- Resuming
- Attachments
- Higher level API
- More events!
- Voice Support
- Sharding

Keywords