mIRC Homepage
Posted By: NightWolf Bot crash notification - 17/11/19 01:58 PM
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.
Posted By: kap Re: Bot crash notification - 17/11/19 03:57 PM
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
Posted By: NightWolf Re: Bot crash notification - 24/11/19 10:14 AM
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.
Posted By: kap Re: Bot crash notification - 24/11/19 11:13 AM
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.
© mIRC Discussion Forums