Merge branch 'master' into develop
This commit is contained in:
+6
-3
@@ -28,9 +28,11 @@ Your role is=
|
|||||||
Changed %s to role `%s`!=
|
Changed %s to role `%s`!=
|
||||||
|
|
||||||
[CommandColiru]
|
[CommandColiru]
|
||||||
|
Please provide some c++ code to attempt to compile!=
|
||||||
Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++.=
|
Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++.=
|
||||||
|
|
||||||
[CommandJDoodle]
|
[CommandJDoodle]
|
||||||
|
Please provide some java code to get it compiled!=
|
||||||
Will compile any java code you put in! Supports Java 1.8=
|
Will compile any java code you put in! Supports Java 1.8=
|
||||||
|
|
||||||
[CommandChangeIndicator]
|
[CommandChangeIndicator]
|
||||||
@@ -48,10 +50,10 @@ Yeet yourself or yeet a friend with @!=
|
|||||||
|
|
||||||
[CommandPollVote]
|
[CommandPollVote]
|
||||||
There is no poll running!=
|
There is no poll running!=
|
||||||
You already voted=
|
|
||||||
%s That's not a vaild vote!=
|
%s That's not a vaild vote!=
|
||||||
That's not a vaild number!=
|
That's not a vaild number!=
|
||||||
Vote in a poll with the choice number, won't work if no poll is running, you can't change your vote once you have cast it! Be careful!=
|
Vote in a poll with the choice number, won't work if no poll is running, you can't change your vote once you have cast it! Be careful!=
|
||||||
|
You already voted!=
|
||||||
You successfully voted for=
|
You successfully voted for=
|
||||||
|
|
||||||
[CommandShutdown]
|
[CommandShutdown]
|
||||||
@@ -118,8 +120,8 @@ Woah! %s booped me! That's %s total!=
|
|||||||
%s booped several others - %s!=
|
%s booped several others - %s!=
|
||||||
|
|
||||||
[CommandInfo]
|
[CommandInfo]
|
||||||
Provides author info and a link to Kitty's website=
|
I'm a Java application written with JDA! Check out my repo at <https://github.com/AlexStewartCode/KittyBot>=
|
||||||
I'm made by `Rin#8904` and `Reverie Wisp#3703`!\nYou can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/=
|
Provides some extra info about KittyBot=
|
||||||
|
|
||||||
[CommandPing]
|
[CommandPing]
|
||||||
Pong!=
|
Pong!=
|
||||||
@@ -140,6 +142,7 @@ Concentrate and ask again.=
|
|||||||
Signs point to yes.=
|
Signs point to yes.=
|
||||||
Don't count on it.=
|
Don't count on it.=
|
||||||
Yes.=
|
Yes.=
|
||||||
|
Hmm? You'll need to ask a question!=
|
||||||
My reply is no.=
|
My reply is no.=
|
||||||
Most likely.=
|
Most likely.=
|
||||||
Reply hazy, try again.=
|
Reply hazy, try again.=
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ public class CommandColiru extends Command
|
|||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
{
|
{
|
||||||
|
if(input.args.trim().length() < 1)
|
||||||
|
{
|
||||||
|
res.Call(Localizer.Stub("Please provide some c++ code to attempt to compile!"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
res.Call(compiler.compileCPlus(input.args));
|
res.Call(compiler.compileCPlus(input.args));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class CommandEightBall extends Command
|
|||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
{
|
{
|
||||||
|
if(input.args.trim().length() < 1)
|
||||||
|
res.Call(Localizer.Stub("Hmm? You'll need to ask a question!"));
|
||||||
|
|
||||||
res.Call(answers[(int) (Math.random()*answers.length)]);
|
res.Call(answers[(int) (Math.random()*answers.length)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,12 +15,11 @@ public class CommandInfo extends Command
|
|||||||
public CommandInfo(KittyRole level, KittyRating rating) { super(level, rating); }
|
public CommandInfo(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return Localizer.Stub("Provides author info and a link to Kitty's website"); }
|
public String HelpText() { return Localizer.Stub("Provides some extra info about KittyBot"); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
{
|
{
|
||||||
String info = Localizer.Stub("I'm made by `Rin#8904` and `Reverie Wisp#3703`!\nYou can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/");
|
res.Call(Localizer.Stub("I'm a Java application written with JDA! Check out my repo at <https://github.com/AlexStewartCode/KittyBot>"));
|
||||||
res.Call(info);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,6 +17,12 @@ public class CommandJDoodle extends Command
|
|||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
{
|
{
|
||||||
|
if(input.args.trim().length() < 1)
|
||||||
|
{
|
||||||
|
res.Call(Localizer.Stub("Please provide some java code to get it compiled!"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
res.Call(compiler.compileJava(input.args));
|
res.Call(compiler.compileJava(input.args));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public class CommandPollVote extends Command
|
|||||||
{
|
{
|
||||||
if(guild.hasVoted.contains(user.uniqueID))
|
if(guild.hasVoted.contains(user.uniqueID))
|
||||||
{
|
{
|
||||||
res.Call(Localizer.Stub("You already voted"));
|
res.Call(Localizer.Stub("You already voted!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
@@ -41,6 +41,7 @@ public class CommandPollVote extends Command
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res.Call(Localizer.Stub("There is no poll running!"));
|
res.Call(Localizer.Stub("There is no poll running!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ public class CommandRPG extends Command
|
|||||||
{
|
{
|
||||||
if(input.args == null || input.args.length() == 0)
|
if(input.args == null || input.args.length() == 0)
|
||||||
{
|
{
|
||||||
res.Call(HelpText());
|
String output = HelpText();
|
||||||
|
System.out.println("Out: |" + output + "|");
|
||||||
|
res.Call(output);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public class Localizer
|
|||||||
return input;
|
return input;
|
||||||
|
|
||||||
String value = stringStore.GetKey(input);
|
String value = stringStore.GetKey(input);
|
||||||
if(value == null || value.length() < 1)
|
if(value == null || value.trim().length() < 1)
|
||||||
return input;
|
return input;
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ public class ObjectBuilderFactory
|
|||||||
manager.Register("results", new CommandPollResults(KittyRole.General, KittyRating.Safe));
|
manager.Register("results", new CommandPollResults(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register("showpoll", new CommandPollShow(KittyRole.General, KittyRating.Safe));
|
manager.Register("showpoll", new CommandPollShow(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register("wolfram", new CommandWolfram(KittyRole.General, KittyRating.Safe));
|
manager.Register("wolfram", new CommandWolfram(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register(new String[] {"c++", "g++", "cplus",}, new CommandColiru(KittyRole.General, KittyRating.Safe));
|
manager.Register(new String[] {"c++", "g++", "cplus","cpp"}, new CommandColiru(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register(new String[] {"java", "jdoodle" }, new CommandJDoodle(KittyRole.General, KittyRating.Safe));
|
manager.Register(new String[] {"java", "jdoodle" }, new CommandJDoodle(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register("beans", new CommandBeansShow(KittyRole.General, KittyRating.Safe));
|
manager.Register("beans", new CommandBeansShow(KittyRole.General, KittyRating.Safe));
|
||||||
manager.Register("role", new CommandRole(KittyRole.General, KittyRating.Safe));
|
manager.Register("role", new CommandRole(KittyRole.General, KittyRating.Safe));
|
||||||
|
|||||||
Reference in New Issue
Block a user