The Wayback Machine - https://web.archive.org/web/20211015155934/https://github.com/topics/discord-bot
Skip to content
#

discord-bot

Here are 12,263 public repositories matching this topic...

Cale111
Cale111 commented Sep 29, 2021

Why?

This could be used for Discord's date feature to more easily get times in your timezone and relative to you, for example, last updated time could be relative to the current time. This could also lower the amount of updates something like a channel topic would get if you dynamically update it with the uptime.

What and How?

Maybe a placeholder like
%unixtime%

There could be UNI

JohnScience
JohnScience commented Aug 10, 2018

The most of Discord bots are expected to provide "mute" and "ban" commands. Their implementation involves juggling with parsing strings just to get so-much-desired duration.

Formats:

"3w 1d 11 [many spaces]h \t30m 20s 5ms"

Methods:

  • duration.toWeeks() -> float
  • duration.toDays() -> float
  • duration.toMinutes() -> float
  • duration.toSeconds() -> float
  • duration.toMilliseconds()

Improve this page

Add a description, image, and links to the discord-bot topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the discord-bot topic, visit your repo's landing page and select "manage topics."

Learn more