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

discord-api

Here are 863 public repositories matching this topic...

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()
Squ1dboi
Squ1dboi commented Aug 17, 2020

I got all requirements and followed all the steps, but when I opened rtb.py, nothing happens! it says
Unable to read Config file.
Importing necessary modules and checking installations.
RTBFiles directory not found.
downloading config,json
and then, nothing happens. can someone help?
![image](https://user-images.githubusercontent.com/68292297/90455230-91f1aa00-e0c3-11ea-875c-c017bc872e6c.pn

Improve this page

Add a description, image, and links to the discord-api 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-api topic, visit your repo's landing page and select "manage topics."

Learn more