betray game started, commandlist updated

This commit is contained in:
Master Kwoth
2016-03-12 11:50:18 +01:00
parent fc19ec1f0b
commit f6bc247862
6 changed files with 139 additions and 21 deletions

View File

@ -16,7 +16,7 @@ namespace NadekoBot.Modules {
commands.Add(new Trivia(this));
commands.Add(new SpeedTyping(this));
commands.Add(new PollCommand(this));
commands.Add(new BetrayGame(this));
_8BallAnswers = JArray.Parse(File.ReadAllText("data/8ball.json")).Select(t => t.ToString()).ToArray();
}

View File

@ -22,7 +22,7 @@ namespace NadekoBot.Modules {
TrelloConfiguration.Deserializer = serializer;
TrelloConfiguration.JsonFactory = new ManateeFactory();
TrelloConfiguration.RestClientProvider = new Manatee.Trello.WebApi.WebApiClientProvider();
TrelloAuthorization.Default.AppKey = NadekoBot.Creds.TrelloAppKey;
//TrelloAuthorization.Default.AppKey = NadekoBot.Creds.TrelloAppKey ?? "123";
//TrelloAuthorization.Default.UserToken = "[your user token]";
Discord.Channel bound = null;
@ -71,7 +71,9 @@ namespace NadekoBot.Modules {
});
cgb.CreateCommand("bind")
.Description("Bind a trello bot to a single channel. You will receive notifications from your board when something is added or edited.")
.Description("Bind a trello bot to a single channel. " +
"You will receive notifications from your board when something is added or edited." +
"\n**Usage**: bind [board_id]")
.Parameter("board_id", Discord.Commands.ParameterType.Required)
.Do(async e => {
if (!NadekoBot.IsOwner(e.User.Id)) return;