Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

zekro-archive/DiscordScript

Repository files navigation

~ DiscordScript ~

Manage your Discord server with scripts!

   

Motivation

If you are an owner of a larger Discord guild or a guild with a lot of roles and channels to manage, you may be annoyed by clicking and tweaking around in the discord overlay to create channels, roles and permissions for each of them. So, I thought, the best way to make this a bit easier, there must be a script-like tool which you can use to batch-execute Discord guild management operations - in best case timable and repeatable. So, I decited to create this script "language" to do so ;)


Development state

This project is currently in a very early state of development. Actually, there is nothing really working currently, but I want to share the development phase of this project and maybe collect some tips to improve this plan.


SYNTAX

Generally, commands must be seperated with ;. Lines, beginning with # are interpretet as comments and will be ignored completely.

Commands

Command Description State of implementation
HELP ([COMMAND]) Display all commands or specific help for a command
TOKEN [TOKEN] Set Discord Bot API token to use other API endpoints with. This function is required to execute before every other action with the API
SELECT [GUILD(S)|CHANNEL(S)|ROLE(S)|USER(S)] (BY NAME [ID|NAME]) Select an object of GUILD, CHANNEL, ROLE or USER by ID (defaultly) or NAME. All follwoing queries will theb ne executed to the selected object.
DESCRIBE (GUILD(S)|CHANNEL(S)|ROLES(S)|USERS(S) (, GUILD(S)|...)...) Displays and lists information about all objects (or specific ones by passing filter) of the currently selected object.
CREATE (AND SELECT) GUILD|CHANNEL|ROLE [OPTIONS] Create an object inside of the selected object with property options passed by OPTIONS argument in form of JSON string like "{'name': 'my-cool-channel', 'type': 0}". For documentation, take a look here. If AND SELECT is included, the created object will automatically be selected after.
MODIFY [OPTIONS] Modify the selected type. Properies are passed here as same as for CREATE command.
DELETE Delete the currently selected object. Using this on USER objects, this will mean a kick of the user!

Don't be rude, contribute!

Yes, I am an absolute python noob and I have never written a kind of language interpreter before, so this will be a quite interisting learining situation for me working at this project. So, if you are more confortable with python and language interpreter design, I would really appreciate your contribution. :)


© 2018 zekro Development
zekro.de | contact[at]zekro.de
Licence: MIT

About

Manage your Discord server with scripts!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages