Skip to content

nschechter/re-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re-discord

Overview

Re-Discord is a library that provides an API for creating very simple discord bots! This library is catered towards creating bots that serve up to a few guilds (servers), with possible support for sharding in the future.

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
- Voice Support

About

A native ReasonML discord API for creating type safe bots

Resources

Stars

10 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors