Gmachine88
Member
- Joined
- Oct 28, 2012
- Messages
- 120
- Reaction score
- 0
Just in case anyone wanted to add the Time to their Logs:
Example:
Code:
public string Time() //- Get Time
{
string A = DateTime.Now.ToString("[hh:mm:ss] ");
return A;
}
Example:
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace Example{
public class Example : Core
{
public static string GetPluginAuthor()
{return "Author";}
public static string GetPluginVersion()
{return "1.0.0.0";}
public static string GetPluginDescription()
{return "Description";}
//Call on plugin start
public void PluginRun()
{
Log(Time() + "Do something here.");
}
//Call on plugin stop
public void PluginStop()
{
Log(Time() + "Stopped.");
}
public string Time() //- Get Time
{
string A = DateTime.Now.ToString("[hh:mm:ss] ");
return A;
}
}
}






