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.
npm install -g esy
git clone <this-repo>
esy install
esy build
After building the project, you can run the main binary that is produced.
export DISCORD_BOT_TOKEN={INSERT_TOKEN}
esy x PingBot.exe
onReady
onMessage(message)
onGuildMemberAdd(guild, member)
onGuildMemberRemove(guild, member)
onReactionAdd(message)
onReactionRemove(message)
Channel.send = (content: string, channel: Channel.t)
Message.reply = (content: string, message: Message.t)
Message.react = (emoji: string, message: Message.t)
- Resuming
- Voice Support