-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNegis.cs
53 lines (45 loc) · 1.02 KB
/
Negis.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System.Collections.Specialized;
using MikuBot.Commands;
using MikuBot.Modules;
namespace MikuBot.ExtraPlugins
{
public class Negis : MsgCommandModuleBase
{
private readonly StringCollection responses = new StringCollection {
"mmm...negis...",
"mmm...negis...",
"I love negis!",
"negis are awesome",
"more negis",
"want a negi?",
"did you mention negis?",
};
public override int CooldownChannelMs
{
get { return 30000; }
}
public override string HelpText
{
get { return "Negis!"; }
}
public override bool IsPassive
{
get { return true; }
}
public override void HandleCommand(MsgCommand chat, IBotContext bot)
{
var txt = chat.Text.ToLower();
if (txt.Contains("negis") && (!responses.Contains(txt) || chat.HighlightMe))
{
if (!CheckCooldowns(chat, bot, false))
return;
var output = BotHelper.ChooseRandom(responses);
bot.Writer.Msg(chat.ChannelOrSenderNick, output);
}
}
public override string Name
{
get { return "Negis"; }
}
}
}