- A postgresql database
- A server
- A line bot
- A discord bot
- A container
No server? No database? Look here
Get lastest version from Release
Create an .env
file.
cp .env.example .env
You will get this.
DATABASE_URL=postgresql://postgres:postgres@example.com:5998/dbname
GUILD_ID=
PARENT_ID=
LINE_CHANNEL_SECRET=
LINE_CHANNEL_TOKEN=
DISCORD_TOKEN=
-
GUILD_ID
: Your discord server id. -
PARENT_ID
: Your discord category channel id. -
LINE_CHANNEL_SECRET
andLINE_CHANNEL_TOKEN
- Go to https://developers.line.biz/
- Click to "Console"
- Login as your LINE account
- Select your name at Providers
- Click to "Create a new channel"
- Type of "Message API"
- Type some info for your Channel
- Click to "Create"
- Copy the Channel Secret at Basic setting
- Copy the Channel Token at Message API
- Disable "Auto-reply messages" and "Greeting messages" Enable "Allow bot to join group chats"
-
DISCORD_TOKEN
- Go to https://discord.com/developers/applications
- Click to "New Application"
- Type bot name. And Create it
- Go to Bot and add Bot
- Click to Reveal Token
- Visit it to add to your server https://discord.com/oauth2/authorize?client_id={{CLIENT_ID}}&permissions=8&scope=bot
./line2discord
When Deploy is completed,
- Access to https://railway.app/dashboard and select line2discord
- Below line2discord, there will display a domain, please memorize it. (When you access, you will see
Hello, world!
) - Access to https://developers.line.biz/console/ and select the channel you created
- In the
Messaging Api Setting
, set theWebhook URL
to https://yourdomain.com/webhook