DiscordClocks

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 7 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

DiscordClocks

Clocks for your Discord servers.

Installation

Make sure you have a bot token for the Discord API.

Download the program and Go v1.15+, and run go build to create the executable.

Configuration

Set mod_roles in the configuration file generated on the first run to an array including role IDs authorized to modify server clocks.

Usage

^addclock <channel ID> <tz timezone> [custom abbreviation]: Creates a clock on voice channel <channel ID>. You can get channel IDs by enabling Developer Mode in Settings->Appearance and then right-clicking on a channel to "Copy ID".

This should only be used on voice channels, since they can have spaces and capital letters in their names.

Example: ^addclock 637737139022462987 America/Los_Angeles

This creates a clock on channel 637737139022462987 with a time in PST or PDT.

Example: ^addclock 637737139022462987 America/Los_Angeles PDT

This creates a clock on channel 637737139022462987 with a time in PST or PDT, but it will have the label PDT no matter what, even if it is incorrect.

^removeclock <channel ID>: Removes a clock from a voice channel.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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