Discord bot for keeping track of user time zones.
Find a file
Noi 271ff0d3eb Better handling of program shutdown
It now knows what a SIGTERM is.
Additionally, made some small tweaks to the file's structure
and removed some unnecessary details.
2023-06-11 19:09:04 -07:00
.vscode Explicit config path in args 2023-01-14 20:55:21 -08:00
Commands Remove custom precondition; use Discord permissions 2023-01-14 21:54:23 -08:00
Data Add 12-hour time format (implements #2) 2023-01-14 21:43:55 -08:00
Docs Small rewrites to page 2023-01-23 19:40:33 -08:00
.editorconfig Rewrite to C# 2021-11-17 18:09:53 -08:00
.gitignore Rewrite to C# 2021-11-17 18:09:53 -08:00
BackgroundUserListLoad.cs Add user list fetch background task 2022-08-30 19:34:41 -07:00
Configuration.cs Load database config on initialization 2022-08-09 18:40:14 -07:00
License.txt Update copyright date / contact email 2023-02-19 10:22:11 -08:00
Program.cs Better handling of program shutdown 2023-06-11 19:09:04 -07:00
Readme.md Add project-centric readme 2023-01-22 18:50:19 -08:00
WorldTime.cs Remove custom precondition; use Discord permissions 2023-01-14 21:54:23 -08:00
WorldTime.csproj Exclude page from .NET build 2023-01-23 19:56:00 -08:00

World Time

A social time zone reference tool!

ko-fi

Documentation, help, resources

Running your own instance

You need:

Get your bot token and set up your database user and schema, then create a JSON file containing the following:

{
    "BotToken": "your bot token here",
    "SqlHost": "localhost", // optional
    "SqlDatabase": "worldtime", // optional
    "SqlUser": "worldtime", // required
    "SqlPassword": "mypassword" // required; no other authentication methods are currently supported
}

Then run the following commands:

$ dotnet restore
$ dotnet ef database update -- -c path/to/config.json

And finally, to run the bot:

$ dotnet run -c Release -- -c path/to/config.json