Added server invite to PM and help

This commit is contained in:
Master Kwoth 2016-01-22 20:20:59 +01:00
parent 49b521af4d
commit a7872737d6
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ namespace NadekoBot
{ {
public override Func<CommandEventArgs, Task> DoFunc() => async e => public override Func<CommandEventArgs, Task> DoFunc() => async e =>
{ {
string helpstr = "Official repo: **github.com/Kwoth/NadekoBot/** \n"; string helpstr = "Official repo: **github.com/Kwoth/NadekoBot/**\nBot Creator's server: https://discord.gg/0ehQwTK2RBhxEi0X";
string lastCategory = ""; string lastCategory = "";
foreach (var com in client.Commands().AllCommands) foreach (var com in client.Commands().AllCommands)

View File

@ -311,7 +311,7 @@ namespace NadekoBot.Modules
await e.Send("Announcements disabled."); await e.Send("Announcements disabled.");
} }
}); });
//todo add greet/bye for everyone
cgb.CreateCommand(".greetmsg") cgb.CreateCommand(".greetmsg")
.Description("Sets a new announce message. Type %user% if you want to mention the new member.\n**Usage**: .greetmsg Welcome to the server, %user%.") .Description("Sets a new announce message. Type %user% if you want to mention the new member.\n**Usage**: .greetmsg Welcome to the server, %user%.")
.Parameter("msg", ParameterType.Unparsed) .Parameter("msg", ParameterType.Unparsed)

View File

@ -24,7 +24,7 @@ namespace NadekoBot
public static string password; public static string password;
public static string TrelloAppKey; public static string TrelloAppKey;
public static bool ForwardMessages = false; public static bool ForwardMessages = false;
public static string BotVersion = "0.5-beta1"; public static string BotVersion = "0.7-beta1";
static void Main() static void Main()
{ {
@ -153,7 +153,7 @@ namespace NadekoBot
await OwnerUser.SendMessage(e.User +": ```\n"+e.Message.Text+"\n```"); await OwnerUser.SendMessage(e.User +": ```\n"+e.Message.Text+"\n```");
if (repliedRecently = !repliedRecently) { if (repliedRecently = !repliedRecently) {
await e.Send("You can type `-h` or `-help` or `@MyName help` in any of the channels I am in and I will send you a message with my commands.\n Or you can find out what i do here: https://github.com/Kwoth/NadekoBot\nYou can also just send me an invite link to a server and I will join it.\nIf you don't want me on your server, you can simply ban me ;("); await e.Send("You can type `-h` or `-help` or `@MyName help` in any of the channels I am in and I will send you a message with my commands.\n Or you can find out what i do here: https://github.com/Kwoth/NadekoBot\nYou can also just send me an invite link to a server and I will join it.\nIf you don't want me on your server, you can simply ban me ;(\nBot Creator's server: https://discord.gg/0ehQwTK2RBhxEi0X");
Timer t = new Timer(); Timer t = new Timer();
t.Interval = 2000; t.Interval = 2000;
t.Start(); t.Start();