new command: UnixTimeNow
This commit is contained in:
parent
3b7d955cbd
commit
b7821cbd31
1 changed files with 17 additions and 0 deletions
17
Core/Commands/Info/UnixTimeNow.cs
Normal file
17
Core/Commands/Info/UnixTimeNow.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using BetterSecondBotShared.Static;
|
||||
|
||||
namespace BSB.Commands.Info
|
||||
{
|
||||
public class UnixTimeNow : CoreCommand_SmartReply_1arg
|
||||
{
|
||||
public override string Helpfile { get { return "Requests the current unixtime at the bot and sends that via the smart reply target"; } }
|
||||
public override bool CallFunction(string[] args)
|
||||
{
|
||||
if (base.CallFunction(args) == true)
|
||||
{
|
||||
return bot.GetCommandsInterface.SmartCommandReply(args[0], helpers.UnixTimeNow().ToString(), CommandName);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue