Jump to content

Thoughts on this bot


Alexr03

Recommended Posts

Pretty cool. What sort of functionality do you have built-in currently?

 

Still developing it and expanding functionality.

 

  • File Manager
  • Start service
  • Stop service
  • Restart service
  • Suspend Service
  • Unsuspend Service
  • Get a Service graph (players, cpu, ram)
  • Restart monitors by name or all
  • Update monitors by name or all
  • Sending RCON commands to services

 

File Manager features:

[in files]

  • Edit file
  • Copy file to directory
  • Download file
  • Delete file
  • Extract file [Not implemented yet]

 

[in Directory]

  • Create file
  • Upload file [Not implemented yet]
  • Compress [Not implemented yet]

 

If you'd like a more in-depth view of it in action lmk. :p

Link to comment
Share on other sites

Still developing it and expanding functionality.

 

  • File Manager
  • Start service
  • Stop service
  • Restart service
  • Suspend Service
  • Unsuspend Service
  • Get a Service graph (players, cpu, ram)
  • Restart monitors by name or all
  • Update monitors by name or all
  • Sending RCON commands to services

 

File Manager features:

[in files]

  • Edit file
  • Copy file to directory
  • Download file
  • Delete file
  • Extract file [Not implemented yet]

 

[in Directory]

  • Create file
  • Upload file [Not implemented yet]
  • Compress [Not implemented yet]

 

If you'd like a more in-depth view of it in action lmk. :p

How does it communicate with the nodes remotely? I imagine you have a secondary process running on each of them?

Link to comment
Share on other sites

How does it communicate with the nodes remotely? I imagine you have a secondary process running on each of them?

 

Nope, uses TCAdmin to communicate just input data in the app.config (on the bot side) and done! :)

Edited by alexr03
Link to comment
Share on other sites

Interesting idea. How are you handling authentication? Does an administrator have to login etc?

 

As this bot in it's current state is for staff, the staff member must have their Discord ID in the configuration in order to execute commands. For commands that affects remote servers they require somewhat `privileged` permissions which is just a different list in the configuration file with ID's of the staff that have all permissions.

 

Eventually I will be integrating the permissions based on the role they have within TCAdmin. Shouldn't be that hard to implement, i'll have to integrate some kind of system to ask the discord user who they are on LYHMEPanel, try and authenticate them then whatever their `role` on TCAdmin has they will have them permissions within the bot.

Link to comment
Share on other sites

To anyone interested,

I am now handling authentication and what permissions they have on TCAdmin side.

 

So from now they need the permissions within TCAdmin to execute them within Discord :D

 

Example:

https://files.alexr03.com/w2V8nHW6XU.mp4

 

The file manager on discord also follows the same rules located in the `File System Permissions` in the game config. So if a `User` has no permissions to see .exe files it will not show up in the Discord file manager. But will show up if a sub-admin has access to such files.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 188 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use