Bridges a Discord channel to SMS.
- Install Node.js
- Run
npm install
- Copy
config.sample.json
toconfig.json
and fill in the info- You can make a bot at the Discord Developer Portal
- Click
New Application
in the top right - Click
Bot
in the sidebar - Click
Add Bot
- Click
Copy
to copy the token
- Click
- Sign up for Twilio and:
- Create an
Account
for this - The SID and Auth Token are shown on the account home page
- Get a trial phone number and that'll be your Twilio number
- Go to
Phone numbers
->Manage
->Active numbers
in the sidebar, then click your number - Scroll down to the
Messaging
category and setA MESSAGE COMES IN
toWebhook
, a URL that points to your server, andHTTP POST
- The Twilio port can be anything,
4501
is what I'm using so left it as a default, make sure to use this port in the webhook URL
- Create an
- You can make a bot at the Discord Developer Portal
- Run
npm start
- Install
pm2
withnpm install -g pm2
- Start with
pm2 start sms-bot.js