trial-recorder

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: AGPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Yoahtl Trial Recorder

A simple util to easily record trials with the Yoahtl court system as markdown files for use in other systems, like the website.

Usage

  1. Create a Discord bot and invite it to your server.
  2. Set the environment variables listed below.
  3. Run the bot.
    go run .
    
    or just run the docker image

The bot will then record the messages in the channel specified by CHANNEL_ID from the message with ID START_MSG_ID to the message with ID END_MSG_ID and save them to a file named <trial name>.md in the transcripts folder, where <trial name> is the value of the TRIAL_NAME environment variable.

Environment Variables

  • DISCORD_TOKEN - The token to use to connect to Discord.
  • CHANNEL_ID - The ID of the channel to record from.
  • START_MSG_ID - The ID of the message to start recording from. This is exclusive, so the message with this ID will not be recorded.
  • END_MSG_ID - The ID of the message to end recording at. This is inclusive, so the message with this ID will be recorded.
  • TRIAL_NAME - The name of the trial to record.
  • NAME_OVERRIDE - A way to override the name of a discord user. Takes a json object with the discord user ID as the key and the name to use as the value. For example, {"123456789012345678": "John Doe"}.

(The bot will also take an .env file in the current directory if it exists.)

Go Version

1.20

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址