mIRC Home    About    Download    Register    News    Help

Print Thread
#266336 17/11/19 01:58 PM
Joined: Nov 2019
Posts: 2
N
Bowl of petunias
OP Offline
Bowl of petunias
N
Joined: Nov 2019
Posts: 2
Hi, I'm currently hosting a bot for someone and need to know if the bot crashes so I can get it back up and running asap. is there a script that can do this? either email me or sms etc. Any help appreciated.

Joined: Feb 2015
Posts: 138
kap Offline
Vogon poet
Offline
Vogon poet
Joined: Feb 2015
Posts: 138
Maybe this is helpful. (Mind, I'm assuming a mighty many things here)

https://superuser.com/questions/1097766/windows-task-scheduler-run-task-if-task-isnt-running

Last edited by kap; 17/11/19 03:58 PM.

GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net
Joined: Nov 2019
Posts: 2
N
Bowl of petunias
OP Offline
Bowl of petunias
N
Joined: Nov 2019
Posts: 2
Thanks for the link, it’ll come in handy for something else I need, but not for this instance.

Basically the bot is an auto DJ that I need to know if it crashes so that I can reload it. It will currently restart itself but I need to change its name once it has. What I’m looking for is something that can alert me when it crashes so I can get to it faster. I can’t let it reboot in its DJ name because if there’s an actual DJ playing at the time it’ll boot them from the room.
Hope this makes sense.

Joined: Feb 2015
Posts: 138
kap Offline
Vogon poet
Offline
Vogon poet
Joined: Feb 2015
Posts: 138
Just so that I understand:

1. Is the bot written in mIRC Scripting Language?
2. Are you running mIRC and if so, are you in the same channel as the bot?
3. Is it possible to code the bot so that when it restarts it uses the right nickname?

I know there's 18 year old code in Peace and Protection that uses sockets to send email you could look at. Then again email servers have advanced, so this might not work for example if the mail server uses grey listing. Also, a quick google shows you could -very likely- use this website with the new $urlget identifier to send yourself an sms: https://www.clockworksms.com/doc/easy-stuff/http-interface/send-sms/

I hope someone else can jump in to help you out. I don't have any ready made scripts available to help you, sorry.

Last edited by kap; 24/11/19 11:13 AM.

GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net

Link Copied to Clipboard