Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing Help command contents into a seperate TOML file #10

Open
ghost opened this issue Feb 10, 2022 · 2 comments
Open

Parsing Help command contents into a seperate TOML file #10

ghost opened this issue Feb 10, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Feb 10, 2022

Probably would help add commands to the list a lot more easily, than trying to flood Discord help.py and Revolt help.py

@ghost ghost added the enhancement New feature or request label Feb 10, 2022
@ghost ghost self-assigned this Feb 10, 2022
@ghost
Copy link
Author

ghost commented Feb 10, 2022

I guess here's an example of what could work

[hello]
name = "Hello"
desc = "Hello Command"
syntax = "{botPrefix}hello"

[httpcat]
name = "HTTP Cat"
desc = "Hello Command"
syntax = "{botPrefix}httpcat [http code]"

[ghr]
name = "GitHub Repos"
desc = "Preview GitHub Repo's Details"
syntax = "{botPrefix}ghr [org/username] [repo name]"

[memoryleak]
name = "Memory Leak"
desc = "Funni Memory Leak video go brrr"
syntax = "{botPrefix}memoryleak"

[gasp]
name = "Gasp"
desc = "Just find out for yourself..."
syntax = "{botPrefix}gasp"

[token]
name = "Token Leak"
desc = "So about that funky config.toml..."
syntax = "{botPrefix}token"

[devtools]
name = "Discord Devtools"
desc = "Discord disabled Dev Tools by default now, here's how to get it back"
syntax = "{botPrefix}devtools"

[headcrab]
name = "Headcrab"
desc = "Do you just... want someone to perish? Throw a headcrab at them!"
syntax = "{botPrefix}headcrab [@username]"

@asoji asoji added the Kotlin label Apr 16, 2022
@asoji asoji removed the Kotlin label May 15, 2022
@asoji
Copy link
Member

asoji commented Aug 8, 2024

There's... probably a better way of doing this. There might be a way to get all the contents from the annotations I use. I believe Storm has pointed out a way to do this but I don't remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants