mIRC Home    About    Download    Register    News    Help

Print Thread
Bot crash notification #266336 17/11/19 01:58 PM
Joined: Nov 2019
Posts: 2
N
NightWolf Offline OP
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.

Re: Bot crash notification [Re: NightWolf] #266338 17/11/19 03:57 PM
Joined: Feb 2015
Posts: 60
K
kap Offline
Babel fish
Offline
Babel fish
K
Joined: Feb 2015
Posts: 60
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.

irc://irc.mircscripts.net:+6697/chat
Re: Bot crash notification [Re: kap] #266371 24/11/19 10:14 AM
Joined: Nov 2019
Posts: 2
N
NightWolf Offline OP
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.

Re: Bot crash notification [Re: NightWolf] #266373 24/11/19 11:13 AM
Joined: Feb 2015
Posts: 60
K
kap Offline
Babel fish
Offline
Babel fish
K
Joined: Feb 2015
Posts: 60
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.

irc://irc.mircscripts.net:+6697/chat