Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wh0/shardsnap-sample-discordjs
- Owner: wh0
- Created: 2020-07-11T17:45:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T23:05:15.000Z (almost 2 years ago)
- Last Synced: 2023-03-27T18:12:26.804Z (over 1 year ago)
- Topics: discord, discord-js, hacktoberfest, serverless
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`.