mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 06:34:36 +00:00
Discord bot for keeping track of user time zones.
30c08016d2
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.5 to 3.2.8. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](https://github.com/ruby/rexml/compare/v3.2.5...v3.2.8) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.config | ||
.vscode | ||
Commands | ||
Data | ||
Docs | ||
.editorconfig | ||
.gitignore | ||
BackgroundUserListLoad.cs | ||
Configuration.cs | ||
License.txt | ||
Program.cs | ||
Readme.md | ||
WorldTime.cs | ||
WorldTime.csproj |
World Time
A social time zone reference tool!
Documentation, help, resources
Running your own instance
You need:
- .NET 8 (https://dotnet.microsoft.com/en-us/)
- PostgreSQL (https://www.postgresql.org/)
- A Discord bot token (https://discord.com/developers/applications)
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 tool 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