fixes from yesterday
This commit is contained in:
parent
5275058553
commit
fc19ec1f0b
@ -59,6 +59,7 @@ namespace NadekoBot.Classes.JSONModels {
|
|||||||
public string Trello { get; set; } = "trello";
|
public string Trello { get; set; } = "trello";
|
||||||
public string Games { get; set; } = ">";
|
public string Games { get; set; } = ">";
|
||||||
public string Gambling { get; set; } = "$";
|
public string Gambling { get; set; } = "$";
|
||||||
|
public string Permissions { get; set; } = ";";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ConfigHandler {
|
public static class ConfigHandler {
|
||||||
|
@ -13,7 +13,7 @@ using NadekoBot.Modules;
|
|||||||
namespace NadekoBot.Commands {
|
namespace NadekoBot.Commands {
|
||||||
internal class ClashOfClans : DiscordModule
|
internal class ClashOfClans : DiscordModule
|
||||||
{
|
{
|
||||||
public override string Prefix { get; } = ",";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.ClashOfClans;
|
||||||
|
|
||||||
public static ConcurrentDictionary<ulong, List<ClashWar>> ClashWars { get; } = new ConcurrentDictionary<ulong, List<ClashWar>>();
|
public static ConcurrentDictionary<ulong, List<ClashWar>> ClashWars { get; } = new ConcurrentDictionary<ulong, List<ClashWar>>();
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ namespace NadekoBot.Modules {
|
|||||||
commands.Add(new RequestsCommand(this));
|
commands.Add(new RequestsCommand(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = String.Format("<@{0}>", NadekoBot.Creds.BotId);
|
public override string Prefix { get; } = String.Format(NadekoBot.Config.CommandPrefixes.Conversations, NadekoBot.Creds.BotId);
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
var rng = new Random();
|
var rng = new Random();
|
||||||
|
@ -16,7 +16,7 @@ namespace NadekoBot.Modules
|
|||||||
commands.Add(new DiceRollCommand(this));
|
commands.Add(new DiceRollCommand(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = "$";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Gambling;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager)
|
public override void Install(ModuleManager manager)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ namespace NadekoBot.Modules {
|
|||||||
_8BallAnswers = JArray.Parse(File.ReadAllText("data/8ball.json")).Select(t => t.ToString()).ToArray();
|
_8BallAnswers = JArray.Parse(File.ReadAllText("data/8ball.json")).Select(t => t.ToString()).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = ">";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Games;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
manager.CreateCommands("", cgb => {
|
manager.CreateCommands("", cgb => {
|
||||||
|
@ -11,7 +11,7 @@ namespace NadekoBot.Modules {
|
|||||||
commands.Add(new HelpCommand(this));
|
commands.Add(new HelpCommand(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = "-";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Help;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
manager.CreateCommands("", cgb => {
|
manager.CreateCommands("", cgb => {
|
||||||
|
@ -33,7 +33,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = "!m";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Music;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
var client = NadekoBot.Client;
|
var client = NadekoBot.Client;
|
||||||
|
@ -9,7 +9,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
private readonly Random rng = new Random();
|
private readonly Random rng = new Random();
|
||||||
|
|
||||||
public override string Prefix { get; } = "~";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.NSFW;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
manager.CreateCommands("", cgb => {
|
manager.CreateCommands("", cgb => {
|
||||||
|
@ -11,7 +11,7 @@ using NadekoBot.Extensions;
|
|||||||
|
|
||||||
namespace NadekoBot.Modules {
|
namespace NadekoBot.Modules {
|
||||||
internal class PermissionModule : DiscordModule {
|
internal class PermissionModule : DiscordModule {
|
||||||
public override string Prefix { get; } = ";";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Permissions;
|
||||||
|
|
||||||
public PermissionModule() {
|
public PermissionModule() {
|
||||||
commands.Add(new FilterInvitesCommand(this));
|
commands.Add(new FilterInvitesCommand(this));
|
||||||
|
@ -19,7 +19,7 @@ namespace NadekoBot.Modules {
|
|||||||
rng = new Random();
|
rng = new Random();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Prefix { get; } = "~";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Searches;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
manager.CreateCommands("", cgb => {
|
manager.CreateCommands("", cgb => {
|
||||||
|
@ -11,7 +11,7 @@ using Action = Manatee.Trello.Action;
|
|||||||
namespace NadekoBot.Modules {
|
namespace NadekoBot.Modules {
|
||||||
internal class Trello : DiscordModule {
|
internal class Trello : DiscordModule {
|
||||||
private readonly Timer t = new Timer { Interval = 2000 };
|
private readonly Timer t = new Timer { Interval = 2000 };
|
||||||
public override string Prefix { get; } = "trello";
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Trello;
|
||||||
|
|
||||||
public override void Install(ModuleManager manager) {
|
public override void Install(ModuleManager manager) {
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ namespace NadekoBot {
|
|||||||
modules.Add(new Conversations(), "Conversations", ModuleFilter.None);
|
modules.Add(new Conversations(), "Conversations", ModuleFilter.None);
|
||||||
modules.Add(new Gambling(), "Gambling", ModuleFilter.None);
|
modules.Add(new Gambling(), "Gambling", ModuleFilter.None);
|
||||||
modules.Add(new Games(), "Games", ModuleFilter.None);
|
modules.Add(new Games(), "Games", ModuleFilter.None);
|
||||||
//modules.Add(new Music(), "Music", ModuleFilter.None);
|
modules.Add(new Music(), "Music", ModuleFilter.None);
|
||||||
modules.Add(new Searches(), "Searches", ModuleFilter.None);
|
modules.Add(new Searches(), "Searches", ModuleFilter.None);
|
||||||
modules.Add(new NSFW(), "NSFW", ModuleFilter.None);
|
modules.Add(new NSFW(), "NSFW", ModuleFilter.None);
|
||||||
modules.Add(new ClashOfClans(), "ClashOfClans", ModuleFilter.None);
|
modules.Add(new ClashOfClans(), "ClashOfClans", ModuleFilter.None);
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
"Music": "!m",
|
"Music": "!m",
|
||||||
"Trello": "trello",
|
"Trello": "trello",
|
||||||
"Games": ">",
|
"Games": ">",
|
||||||
"Gambling": "$"
|
"Gambling": "$",
|
||||||
|
"Permissions": ";"
|
||||||
},
|
},
|
||||||
"ServerBlacklist": [],
|
"ServerBlacklist": [],
|
||||||
"ChannelBlacklist": [],
|
"ChannelBlacklist": [],
|
||||||
|
Loading…
Reference in New Issue
Block a user