cjmwid Posted March 31, 2018 Share Posted March 31, 2018 I'm just curious if there is an API that could be used to let us say, start/stop/restart/execute a custom script from an url? that could contain a token kinda? Like, https://urltopanel.com/api.php?token=<blah>&action=<blank> Reason I ask, I'd like to make a discord bot for this small community they people could send a command to that would run a custom script that would update the server, then from the bot, I could control access for who can run what commands, etc. Not sure if this is possible with billing API if it is any examples would be appreciated! Link to comment Share on other sites More sharing options...
Raizio Posted March 31, 2018 Share Posted March 31, 2018 Best I can think it is if you use the bot to send commands to the billing api url. Here are some examples: http://help.tcadmin.com/Billing_API_Examples I know you mean not billing, but in this case they are one and the same. You can use the same API for the start/stop things. It doesn't require a billing to work. Link to comment Share on other sites More sharing options...
cjmwid Posted April 2, 2018 Author Share Posted April 2, 2018 I'm more interested in it running a script then starting and stoping Link to comment Share on other sites More sharing options...
Raizio Posted April 2, 2018 Share Posted April 2, 2018 No such thing in the API I am afraid. Only way I see how that could happen if you use a before or after event to trigger the script. On a restart or a suspend, etc. Link to comment Share on other sites More sharing options...
CloudNine Posted April 2, 2018 Share Posted April 2, 2018 Tcadmin is outdated and lacks many of the modern updates, the API has limited functionality. You can still run mysql queries to manipulate the database however. Link to comment Share on other sites More sharing options...
Alexr03 Posted April 2, 2018 Share Posted April 2, 2018 (edited) Hello, I have already done what you are hoping to do but it's closed source since it's a private project but it's a discord bot like you wanted to make. It's made in C# and it uses the TCAdmin billing API and also MySQL queries to communicate with the database etc. Through my Discord Bot I can stop/start the server, change the name, amount of people on the server, etc all through the API. https://files.alexr03.com/Alex-5c5ff79c-cbc4-4223-92ff-049b9bbc56d3.mp4 https://files.alexr03.com/Alex-af2742eb-4882-4323-8986-45405a140f70.mp4 I was speaking with Luis though on Support Ticket. He said in a few months TCAdmin will be upgraded to .net 4.5 and will be introducing a API similar to https://pterodactyl.io/ If you'd prefer not to start building an API yourself to use like I did. You may want to wait for a few months. Edited April 2, 2018 by alexr03 Link to comment Share on other sites More sharing options...
cjmwid Posted April 3, 2018 Author Share Posted April 3, 2018 Interesting, Maybe I'll wait and see what comes from TCAdmin Thanks for showing that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now