The main discord bot of the discord guild/server
- Stardust Radio streaming by discord voice connection
- Message watcher & ruler : Verify the content of the message and the integrity
- Moderation tools & commands
- And some easter eggs !!
- Node.Js
- Discord.Js
- See
package.json
😂
- Clone this repository
npm install
node stardust_discord.js
or with PM2
pm2 start stardust_discord.js
File watcher with Nodemon
nodemon stardust_discord.js
Using httpie as cli http client
http https://api.twitch.tv/helix/webhooks/subscriptions
POST https://id.twitch.tv/oauth2/token?client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=client_credentials
http GET https://api.twitch.tv/helix/users?login=CHANNEL_SLUG Client-ID:YOUR_CLIENT_ID
For example to subscribe the url https://example.com/notify (url can be non https) to all the streams event (UP/DOWN stream) use this command:
http POST https://api.twitch.tv/helix/webhooks/hub \
hub.mode=[un]subscribe \
hub.callback=https://example.com/notify \
hub.lease_seconds=864000 \
hub.secret=YOUR_SECRET \
hub.topic=https://api.twitch.tv/helix/streams?user_id=YOUR_USER_ID \
'Authorization: Bearer YOUR_TOKEN'
or hub.topic=https://api.twitch.tv/helix/users/follows?first=1&to_id=YOUR_USER_ID to get notifed about new users