+ Added poll results, poll show, poll vote, rating, role

This commit is contained in:
Matthew Cech
2019-04-06 23:41:06 -07:00
parent e5a40ae329
commit 52afd92db1
6 changed files with 53 additions and 22 deletions
+5 -4
View File
@@ -1,6 +1,7 @@
package commands;
import core.Command;
import core.Localizer;
import dataStructures.KittyChannel;
import dataStructures.KittyGuild;
import dataStructures.KittyRating;
@@ -14,7 +15,7 @@ public class CommandRating extends Command
public CommandRating(KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return "'0' is fully sfw (Derpi and e621 searches are disabled), '1' is filtered (kitty auto appends a sfw tag on any searches), '2' is nsfw (any search will go through). Some other words are supported for setting filter as well."; }
public String HelpText() { return Localizer.Stub("'0' is fully sfw (Derpi and e621 searches are disabled), '1' is filtered (kitty auto appends a sfw tag on any searches), '2' is nsfw (any search will go through). Some other words are supported for setting filter as well."); }
// Called when the command is run!
@Override
@@ -54,11 +55,11 @@ public class CommandRating extends Command
}
if(newRating != null)
res.Call("Kittybot content set to " + newRating);
res.Call(Localizer.Stub("Kittybot content set to") + " " + newRating);
else
res.Call("Invalid content rating `" + input.args + "`");
res.Call(Localizer.Stub("Invalid content rating") + " `" + input.args + "`");
if(newRating.equals("Filtered"))
res.Call("Warning: NSFW may slip through, images are only based on tags on their respective sites!");
res.Call(Localizer.Stub("Warning: NSFW may slip through, images are only based on tags on their respective sites!"));
}
}