A small Discord timezones bot for keeping track of other users' timezones and local times.
Find a file
2020-05-30 22:35:52 +01:00
.gitignore ignore database files 2020-01-01 19:06:33 +00:00
bot.py Merge pull request #3 from kramrm/kramrm-patch-3 2020-05-30 22:35:52 +01:00
LICENSE Create LICENSE 2020-02-17 18:07:22 +00:00
readme.md Update readme.md 2020-01-01 18:42:20 +00:00
requirements.txt initial commit 2020-01-01 18:26:46 +00:00

Discord Friend Timezones

A small Discord timezones bot for keeping track of other users' timezones and local times.

You can invite the bot here or host it yourself.

screenshot

Features

  • Each user sets their timezone with --tzset <timezone>. This supports fuzzy matching, so you can set it to Europe/London with --tzset london for example.
  • View users' timezones with --tzget <list of mentions>.
  • View users' local times with --time <list of mentions>.

Self-Hosting

You need at least Python 3.6 installed. It is also recommended to use a virtualenv.

  • Clone this repo
  • Install requirements using pip install -r requirements.txt
  • Create a file called settings.json inside the cloned directory, this should contain the following:
{
  "token": "your bot token",
  "prefix": "--",
  "database": "sqlite:///database.db"
}

These are example values, any prefix or database URI can be used.

  • Run python bot.py