From a91b432557860c21402008361711d22b179fd47b Mon Sep 17 00:00:00 2001 From: Noikoio Date: Tue, 5 Sep 2017 11:26:57 -0700 Subject: [PATCH] Removing example config, updating to .NET Core 2.0.0 --- .../PublishProfiles/StableProfile.pubxml | 4 +- RegexBot.csproj | 8 +-- settings.example.json | 68 ------------------- 3 files changed, 3 insertions(+), 77 deletions(-) delete mode 100644 settings.example.json diff --git a/Properties/PublishProfiles/StableProfile.pubxml b/Properties/PublishProfiles/StableProfile.pubxml index 593d520..548b9af 100644 --- a/Properties/PublishProfiles/StableProfile.pubxml +++ b/Properties/PublishProfiles/StableProfile.pubxml @@ -1,13 +1,13 @@  FileSystem Release - netcoreapp1.1 + netcoreapp2.0 bin\Release\PublishOutput \ No newline at end of file diff --git a/RegexBot.csproj b/RegexBot.csproj index ff1966e..baf0f47 100644 --- a/RegexBot.csproj +++ b/RegexBot.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp1.1 + netcoreapp2.0 Noikoio.RegexBot 1.1.3.0 Highly configurable Discord moderation bot @@ -20,10 +20,4 @@ - - - Always - - - diff --git a/settings.example.json b/settings.example.json deleted file mode 100644 index fe8a0f7..0000000 --- a/settings.example.json +++ /dev/null @@ -1,68 +0,0 @@ -// (this is now really outdated. I'll update it eventually) -{ - "bot-token": "your bot token goes here", // this value is required - "playing": "add some extra flair here", // optional - - // Server values are defined in the "servers" array. Multiple servers are supported. - // Unless stated otherwise, all given values are not case sensitive. - "servers": [ - { - "name": "RegexBot testing area", // Server name, as exists on Discord. - "ignore": { - // Server-wide ignore list. This entire section and its subsections are optional. - // For the moment, only names are checked and it is assumed they will never change. - // The user ignore list in particular should be considered highly unreliable. This will be fixed later. - "users": [], - "roles": [ "Bots" ], - "channels": [] - }, - "rules": [ - // Response rules are defined within this array. See the examples below. - { - "name": "Greeter", // Name of the rule, for logging purposes. Required. - "regex": "^hello", // Regex string that will trigger this rule's response. Required. - "response": [ // Array of responses. Required. - "say #_ Hi @_." - // "say" sends a message to a channel. - // The first parameter (#_) is a reference to the channel where the response - // is being triggered. The rest of the parameters are the text to use. The text - // "@_" is replaced by the name of the user that triggered the response. - ] - }, - { - "name": "fishfish spam remover", - "regex": "(fish)+", - - // Regex rules are not case sensitive by default, but can be overridden with this setting. - "ignorecase": "false", - - // The next two statements ensure that the rule won't be enforced unless the message - // is between 10 and 20 characters (inclusive) in length. - "min": 10, - "max": 20, - - "response": [ - "delete", // Deletes the message that triggered the response. - "report #modlog" // Quotes the message to the given channel. - ] - }, - { - "name": "Fun script thing", - "regex": "^!fun", - "ignore": { - // Individual rules may define their own ignore lists. - // It works in exactly the same way as the server-wide ignore list. - "roles": [ "Anti-Fun Brigade" ] - }, - "response": [ - // Executes an external script and sends output to the source channel. - "exec #_ python ../fun.py" - ] - } - ] - } - //, { - // Another server may be defined here with its own set of rules. - //} - ] -} \ No newline at end of file