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

discord-bot

Here are 11,610 public repositories matching this topic...

Ash10744
Ash10744 commented Jan 7, 2021

A placeholder %discordsrvislinked_<placeholderapi_placeholder>%

That can parse directly from that player if he is linked for example:

Example 1

Bob (In discord): !playerinfo

DiscordSRVBot: parses the player name of the user cause he is linked. %islinked_player_name%
or maybe their group also %discordsrvislinked_luckperms_group%
etc.

Example 2

**Ash

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