What can I get for you, Doc?

Closure - a Discord Bot for Arknights and Youtube

Features and Commands

W E L C O M E   =>   /welcome

Welcome new members with a custom message and image!

  • Use the welcome command to set your welcome channel.
  • Set a custom image by specifying a url during the slash

O P E R A T O R S   =>   /operator

Get quick information about an Arknights operator!

  • Use the operators command.
  • Clickable art buttons to show their artwork.
  • Make use of the RhodesAPI (may suffer from cold starts).

L I V E   =>   /live

Get the live status of any Youtuber!

  • Use the live command with a youtube link.
  • Try and enter a first/last/full name of a holodex vtuber!
  • Get information about their next scheduled stream!

T R A C K I N G   =>   /tracker

Track the activity of a Youtube Channel.

  • Set the announcement location with the command.
  • Announce both streams and uploads.

P O L L   =>   /poll

Run a simple poll.

  • Create a simple poll.
  • Split your options like Monday|Tuesday|Wednesday

Self-Hosting

If you do not want to invite the bot, you can self-host it on your own machine.

Node

  1. If you do not have Node.js already installed, install it.
  2. Visit the GitHub repo and clone the repository to your machine.
  3. Navigate to the location you cloned in the terminal and type npm install.
  4. Fill out the .env_example with the necessary fields, then rename it to .env.
  5. On your bot's application page, click OAuth2 and go to url generator.
  6. Select the scopes bot and applications.command, and permissions of administrator.
  7. Give the permissions: (if these don't work, play around with it or just click administrator)
    • Send messages
    • Send messages in threads
    • Manage messages
    • Embed links
    • Read message history
    • Mention everyone
    • Use slash commands
    • Read messages/view channels
  8. Copy the generated url and invite your bot to the server of your choice.
  9. Run npm run start if you are on Mac or Linux and npm run startwin if you are on Windows.

Docker

  1. Visit the GitHub repo and clone the repository to your machine.
  2. Fill out the .env_example with the necessary fields, then rename it to .env.
  3. On your bot's application page, click OAuth2 and go to url generator.
  4. Select the scopes bot and applications.command, and permissions of administrator.
  5. Give the permissions: (if these don't work, play around with it or just click administrator)
    • Send messages
    • Send messages in threads
    • Manage messages
    • Embed links
    • Read message history
    • Mention everyone
    • Use slash commands
    • Read messages/view channels
  6. Copy the generated url and invite your bot to the server of your choice.
  7. If you do not have Docker already installed, visit this url and download it for your OS.
  8. If you have Bash you can use the shell commands, otherwise, build the production image by running:

    docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d