a01sa01to / autothread-discord-bot

Discord bot that automatically creates threads when a message is posted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoThread Discord Bot

What is this?

This is a bot that automatically creates threads in a Discord channel, when a message is posted.

Usage

  1. Create a new Discord application from the Discord Developer Portal.
  2. Create a bot and generate a token.
  3. Create src/config.json with the following content:
{
  "DiscordBotToken": "<YOUR TOKEN HERE>",
  "GuildId": "",
  "ChannelId": ""
}
  1. Install deps. yarn install
  2. Run the bot. yarn build && node .
  3. Invite the bot to a server. You can get the invite link from the console.
  4. Restart the bot. ^C (Ctrl-C) and node .
  5. Console shows the server name and ID, and its channel names and IDs. Copy the IDs where you want to create threads to src/config.json. Server ID should be GuildId and channel ID should be ChannelId in src/config.json.
  6. Restart the bot. ^C (Ctrl-C) and yarn start
  7. Now try posting a message in the channel. The bot will create a thread.
  8. To stop the bot, yarn stop

About

Discord bot that automatically creates threads when a message is posted

License:MIT License


Languages

Language:TypeScript 100.0%