What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] EmailNotify - Send email when bot freeze from "Closing error dialog" message

jenovachild

New Member
Joined
Feb 29, 2012
Messages
44
Reaction score
0
Hey all.

Just wrote up a quick plugin that will send an email to your email account if the bot gets stuck so you can still kind of AFK. (I receive the email to my phone, and then just need to fix the bot)

This plugin requires that you have a gmail email account - easy to make if you don't have one already.


Basic Usage

Before using the plugin you will need to configure it to your email settings in the plugin file. Simply open EmailNotify.cs file and change the following lines of code (you will find them near the top of the file):

Code:
public string to = "[email protected]";
public string from = "[email protected]";
public string password = "your email password";

When you enable the plugin on demonbuddy, you should receive a test email telling you that the plugin was enabled. If you do not receive this message, then there is something wrong with your email settings.

NOTE:

This plugin is only sending an email when the error "Closing error dialog" prevents the bot from resuming another game!



Click to Download >> [View attachment EmailNotify.zip]
 
why would the password need to be there? this smells hack, close the thread tbh
 
why would the password need to be there? this smells hack, close the thread tbh

To send an email you need an account to send it from.

It's a .cs file, look at it and see there is nothing nefarious going on.
 
exactly you make a BOt email account on gmail just for the bot. you put that info into the bot. Then you put in the info of the email account you want the bots email to send to.
 
would you explain how this thing works?
especially this line

Logging.OnLogMessage += new Logging.LogMessageDelegate(Logging_OnLogMessage);
 
I would love something like this if it checks for e.g. "no gold collected for 3 minutes" or something like that, since there are quite a few different errors my bot can get stuck on.
 
I would love something like this if it checks for e.g. "no gold collected for 3 minutes" or something like that, since there are quite a few different errors my bot can get stuck on.

I will work on updating this plugin to include a bunch of things that you can send notifications on (ie. gold collecting drops below x, number of games per min drops below x, etc..)
 
would you explain how this thing works?
especially this line

Logging.OnLogMessage += new Logging.LogMessageDelegate(Logging_OnLogMessage);

This is just capturing the event where a log message is being written by Demonbuddy or any plugin.
 
Back
Top