https://github.com/karashiiro/discordclocks
Clocks for your Discord servers.
https://github.com/karashiiro/discordclocks
bot clock discord
Last synced: 6 months ago
JSON representation
Clocks for your Discord servers.
- Host: GitHub
- URL: https://github.com/karashiiro/discordclocks
- Owner: karashiiro
- License: mit
- Created: 2020-10-19T17:57:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T03:09:32.000Z (over 4 years ago)
- Last Synced: 2025-01-19T16:33:14.924Z (over 1 year ago)
- Topics: bot, clock, discord
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DiscordClocks
Clocks for your Discord servers. Updates every five minutes due to API restrictions.

## Why rewrite DisClocks in Go?
I was running up against the memory limits of my DO Droplet, so I decided to rewrite some of the smaller projects I had there in Go. In this case, doing so cut the memory usage of the clock bot in slightly more than half.
## Installation
Make sure you have a bot token for the Discord API.
Download the program and Go v1.15+, install the dependencies, and run `go build` to create the executable. Alternatively, pick up the (possibly outdated, check the commit hash) pre-built Windows binary from [here](https://github.com/karashiiro/DiscordClocks/releases/latest).
Set the environment variable `DISCLOCKS_BOT_TOKEN` to your bot token.
## Configuration
Set `mod_roles` in the configuration file generated on the first run to an array of strings including role IDs authorized
to modify server clocks.
## Usage
`^addclock [custom abbreviation]`: Creates a clock on voice channel ``. 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 `: Removes a clock from a voice channel.