WorldTime/Readme.md
Noi 5f62ed596b Switch to .NET 8
* Bump version
* Update dependencies
* Copy .editorconfig from BirthdayBot
  * Still want to properly look over it some time
* Set up dotnet-ef as project tool
2024-05-09 23:06:20 -07:00

1.1 KiB

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 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