Command and Repeat System. - 19/06/14 04:05 PM
EDIT: according to Loki, thers exploits in it, which includes being able to add shutdown pc commands, currently looking into it.
Hi there, i just wanted to share a little mix of 2 scripts, which took a little editing to work together, hence i am not actualy pro in scripting, in any way.
but i did manage to make this work.
1 part of the the script is a repeat script i found on the forum made by a member called Blessing at the following post.
https://forums.mirc.com/ubbthreads.php/topics/245677/Re:_Help_with_auto-repeat_comm
and the other part of the script i have no idea, since it was uploaded by a guest on Pastebin, however if the real creator of the command section sees this post, and u can proof u made it, im completly willing to give u the credit.
But here is where i found the code, http://pastebin.com/zPMhDif6
the simple functions / commands are the following
#add <command name> <text> - This adds a command to the cmds.ini
#edit <command name> <text> - kinda self explainatory, this edits the text on the command.
#delete <Command name> - Deletes the command
!repeat <command> <time in minutes / off> - example: !repeat !youtube 5, this will repeat the command each 5 minutes. and if u do !repeat !youtube off, it will turn off the repeater.
anyway, here is the script, hope it helps some people
However i do have a small request if possible, since i want to make it a bit cleaner instead of having both # and ! commands, i would like the # commands being !commands as well, however i tried changing it but whenever i did for example !add, after changing and i typed !add, it will read the No such command available. section instead of the adding command section, so i was wondering how i could fix that.
As i said, the credits go to Blessing and whoever made the commands script, i only combined the 2 of them.
Hi there, i just wanted to share a little mix of 2 scripts, which took a little editing to work together, hence i am not actualy pro in scripting, in any way.
but i did manage to make this work.
1 part of the the script is a repeat script i found on the forum made by a member called Blessing at the following post.
https://forums.mirc.com/ubbthreads.php/topics/245677/Re:_Help_with_auto-repeat_comm
and the other part of the script i have no idea, since it was uploaded by a guest on Pastebin, however if the real creator of the command section sees this post, and u can proof u made it, im completly willing to give u the credit.
But here is where i found the code, http://pastebin.com/zPMhDif6
the simple functions / commands are the following
#add <command name> <text> - This adds a command to the cmds.ini
#edit <command name> <text> - kinda self explainatory, this edits the text on the command.
#delete <Command name> - Deletes the command
!repeat <command> <time in minutes / off> - example: !repeat !youtube 5, this will repeat the command each 5 minutes. and if u do !repeat !youtube off, it will turn off the repeater.
anyway, here is the script, hope it helps some people
Click to reveal.. (Command and Repeat)
However i do have a small request if possible, since i want to make it a bit cleaner instead of having both # and ! commands, i would like the # commands being !commands as well, however i tried changing it but whenever i did for example !add, after changing and i typed !add, it will read the No such command available. section instead of the adding command section, so i was wondering how i could fix that.
As i said, the credits go to Blessing and whoever made the commands script, i only combined the 2 of them.