Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wh0/shardsnap-sample-discordjs


https://github.com/wh0/shardsnap-sample-discordjs

discord discord-js hacktoberfest serverless

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Shardsnap sample: discord.js

[back to Glitch](https://glitch.com/edit/#!/shardsnap-sample-discordjs) /
[back to GitHub](https://github.com/wh0/shardsnap-sample-discordjs)

This is a starter project for building a Discord bot with Shardsnap (formerly DCC,
[more info](https://support.glitch.com/t/a-prototype-bot-relay-for-discord/27845)) and discord.js.

Or maybe this isn't that at all.
Maybe this is a project someone remixed from that, and they never bothered to update the README.
Let's try not to be that someone.

## Getting started

1. Remix this project on Glitch.
2. Set your desired project name.
3. Run
```sh
echo "admin:$(head -c16 /dev/urandom | base64)"
```
in the project terminal, get the result, and put it in `SHARDSNAP_SECRET` in `.env`.
4. Create an application in the
[Discord Developer Portal](https://discord.com/developers/applications), get the "CLIENT ID,"
and put it in `BOT_USER_ID` in `.env`.
5. Add a bot to the application in the
[Discord Developer Portal](https://discord.com/developers/applications), get the "TOKEN," and
put it in `DISCORD_TOKEN` in `.env`.