From 0bba11428490032e19bbff9163b5fd04eabe682f Mon Sep 17 00:00:00 2001 From: BreadMoirai Date: Wed, 29 Nov 2017 16:36:54 -0800 Subject: [PATCH] Update Copyrights --- build.gradle | 14 +++++++ .../breadbot/framework/BreadBotClient.java | 5 ++- .../breadbot/framework/CommandEngine.java | 5 ++- .../breadbot/framework/CommandEvent.java | 3 +- .../framework/CommandEventFactory.java | 5 ++- .../breadbot/framework/CommandModule.java | 5 ++- .../annotation/ConfigureCommand.java | 29 +++++++------- .../annotation/ConfigureCommands.java | 16 ++++++++ .../annotation/RegisterPropertyMapper.java | 3 +- .../framework/annotation/command/Command.java | 5 ++- .../annotation/command/Delimiter.java | 5 ++- .../annotation/command/Description.java | 30 ++++++++------- .../framework/annotation/command/Group.java | 30 ++++++++------- .../annotation/command/MainCommand.java | 32 ++++++++-------- .../framework/annotation/command/Name.java | 30 ++++++++------- .../command/RequiredParameters.java | 32 ++++++++-------- .../annotation/parameter/Contiguous.java | 28 +++++++------- .../framework/annotation/parameter/Flags.java | 5 ++- .../parameter/HandleAbsentArgument.java | 3 +- .../framework/annotation/parameter/Index.java | 5 ++- .../annotation/parameter/MatchRegex.java | 5 ++- .../annotation/parameter/Numeric.java | 5 ++- .../parameter/RegisterArgumentMapper.java | 5 ++- .../annotation/parameter/Required.java | 5 ++- .../framework/annotation/parameter/Type.java | 5 ++- .../framework/annotation/parameter/Width.java | 5 ++- .../builder/BreadBotClientBuilder.java | 3 +- .../builder/CommandHandleBuilder.java | 30 ++++++++------- .../builder/CommandHandleBuilderFactory.java | 16 ++++++++ .../builder/CommandModuleBuilder.java | 16 ++++++++ .../builder/CommandParameterBuilder.java | 32 ++++++++-------- .../CommandParameterManagerBuilder.java | 32 ++++++++-------- .../builder/CommandPropertiesBuilder.java | 17 +++++++++ .../builder/CommandResultManagerBuilder.java | 32 ++++++++-------- .../framework/command/CommandHandle.java | 30 ++++++++------- .../command/CommandPreprocessor.java | 16 ++++++++ .../command/CommandPreprocessorFunction.java | 32 ++++++++-------- .../command/CommandPreprocessorPredicate.java | 32 ++++++++-------- .../command/CommandPropertiesManager.java | 16 ++++++++ .../framework/command/CommandPropertyMap.java | 32 ++++++++-------- .../command/CommandResultHandler.java | 32 ++++++++-------- .../command/CommandResultManager.java | 32 ++++++++-------- .../defaults/DefaultCommandParameters.java | 16 ++++++++ .../defaults/DefaultCommandProperties.java | 16 ++++++++ .../DefaultCommandResultHandlers.java | 32 ++++++++-------- .../error/AmbiguousCommandMethod.java | 16 ++++++++ .../framework/error/BreadBotException.java | 32 ++++++++-------- .../error/CommandInitializationException.java | 32 ++++++++-------- .../error/DuplicateCommandKeyException.java | 32 ++++++++-------- .../error/EmptyCommandAnnotation.java | 32 ++++++++-------- .../error/MissingCommandKeyException.java | 16 ++++++++ .../framework/error/MissingCommandMethod.java | 16 ++++++++ .../error/MissingMainCommandException.java | 32 ++++++++-------- .../error/MissingTypeMapperException.java | 32 ++++++++-------- .../error/NoSuchCommandException.java | 32 ++++++++-------- .../error/TooManyMainCommandsException.java | 32 ++++++++-------- .../framework/error/TypeFinderException.java | 16 ++++++++ .../internal/BreadBotClientImpl.java | 3 +- .../internal/command/CommandHandleImpl.java | 16 ++++++++ .../command/CommandObjectFactory.java | 32 ++++++++-------- .../command/CommandPackageProperties.java | 32 ++++++++-------- .../internal/command/CommandProcessStack.java | 16 ++++++++ .../command/CommandPropertiesManagerImpl.java | 32 ++++++++-------- .../command/CommandPropertyMapImpl.java | 30 ++++++++------- .../command/CommandResultManagerImpl.java | 32 ++++++++-------- .../internal/command/CommandRunner.java | 16 ++++++++ .../internal/command/InvokableCommand.java | 32 ++++++++-------- .../command/InvokableCommandHandle.java | 32 ++++++++-------- .../CommandHandleBuilderFactoryImpl.java | 32 ++++++++-------- .../CommandHandleBuilderFactoryInternal.java | 16 ++++++++ .../builder/CommandHandleBuilderImpl.java | 30 ++++++++------- .../builder/CommandHandleBuilderInternal.java | 16 ++++++++ .../event/CommandEventFactoryImpl.java | 5 ++- .../event/MessageReceivedCommandEvent.java | 5 ++- .../event/SerializableCommandEvent.java | 1 + .../parameter/CommandArgumentFactory.java | 16 ++++++++ .../CommandParameterCollectionImpl.java | 32 ++++++++-------- .../CommandParameterFunctionImpl.java | 32 ++++++++-------- .../parameter/CommandParameterImpl.java | 18 ++++++++- .../CommandParameterTypeManagerImpl.java | 32 ++++++++-------- .../parameter/arguments/EmojiArgument.java | 16 ++++++++ .../parameter/arguments/EmoteArgument.java | 16 ++++++++ .../arguments/GenericCommandArgument.java | 16 ++++++++ .../arguments/InvalidMentionArgument.java | 32 ++++++++-------- .../arguments/InvalidRoleArgument.java | 32 ++++++++-------- .../arguments/InvalidTextChannelArgument.java | 32 ++++++++-------- .../arguments/InvalidUserArgument.java | 32 ++++++++-------- .../parameter/arguments/MemberArgument.java | 16 ++++++++ .../parameter/arguments/MentionArgument.java | 16 ++++++++ .../parameter/arguments/RoleArgument.java | 16 ++++++++ .../arguments/TextChannelArgument.java | 16 ++++++++ .../parameter/arguments/UserArgument.java | 16 ++++++++ .../CommandParameterBuilderFactory.java | 32 ++++++++-------- .../builder/CommandParameterBuilderImpl.java | 16 ++++++++ .../CommandParameterFunctionBuilderImpl.java | 32 ++++++++-------- .../parameter/AbsentArgumentHandler.java | 30 ++++++++------- .../framework/parameter/ArgumentFlags.java | 16 ++++++++ .../framework/parameter/ArgumentParser.java | 32 ++++++++-------- .../parameter/ArgumentTypeMapper.java | 16 ++++++++ .../parameter/ArgumentTypePredicate.java | 30 ++++++++------- .../framework/parameter/CommandArgument.java | 32 ++++++++-------- .../parameter/CommandArgumentList.java | 16 ++++++++ .../framework/parameter/CommandParameter.java | 16 ++++++++ .../CommandParameterTypeManager.java | 16 ++++++++ .../framework/parameter/CommandParser.java | 32 ++++++++-------- .../breadbot/modules/admin/Admin.java | 5 ++- .../breadbot/modules/admin/AdminCommand.java | 5 ++- .../breadbot/modules/admin/AdminModule.java | 5 ++- .../modules/admin/DefaultAdminModule.java | 5 ++- .../breadbot/modules/owner/Owner.java | 5 ++- .../breadbot/modules/owner/OwnerModule.java | 5 ++- .../modules/prefix/DefaultPrefixModule.java | 5 ++- .../modules/prefix/PrefixCommand.java | 3 +- .../breadbot/modules/prefix/PrefixModule.java | 5 ++- .../source/GuildRestrictionModule.java | 5 ++- .../modules/source/RestrictToGuild.java | 5 ++- .../AbsentArgumentHandlerInstantiator.java | 32 ++++++++-------- .../breadmoirai/breadbot/util/Arguments.java | 16 ++++++++ .../breadbot/util/AttachmentUtil.java | 32 ++++++++-------- .../breadbot/util/ConfigCommand.java | 32 ++++++++-------- .../breadbot/util/DateTimeMapper.java | 32 ++++++++-------- .../breadbot/util/DiscordPatterns.java | 2 +- .../breadbot/util/DurationMapper.java | 32 ++++++++-------- .../breadmoirai/breadbot/util/Emoji.java | 24 ++++++------ .../breadmoirai/breadbot/util/EmojiEmote.java | 16 ++++++++ .../breadbot/util/EventStringIterator.java | 30 ++++++++------- .../breadbot/util/ExceptionalSupplier.java | 16 ++++++++ .../breadmoirai/breadbot/util/Iterators.java | 32 ++++++++-------- .../breadmoirai/breadbot/util/TypeFinder.java | 19 +++++++++- .../breadbot/util/UnknownEmote.java | 2 +- .../github/breadmoirai/tests/BuilderTest.java | 31 ++++++++------- .../breadmoirai/tests/client/ClientTest.java | 38 ++++++++++--------- .../tests/client/ColorCommand.java | 32 ++++++++-------- .../tests/client/CountCommand.java | 16 ++++++++ .../tests/client/EmojiCommand.java | 16 ++++++++ .../breadmoirai/tests/client/HelpCommand.java | 16 ++++++++ .../breadmoirai/tests/client/MathCommand.java | 16 ++++++++ .../tests/client/MirrorCommand.java | 32 ++++++++-------- .../breadmoirai/tests/client/NameCommand.java | 16 ++++++++ .../breadmoirai/tests/client/PingCommand.java | 30 ++++++++------- .../tests/client/StaticCommand.java | 16 ++++++++ .../tests/client/TypeTestKeyTest.java | 32 ++++++++-------- 142 files changed, 1852 insertions(+), 993 deletions(-) diff --git a/build.gradle b/build.gradle index 21bbba34..5f2bfe7b 100644 --- a/build.gradle +++ b/build.gradle @@ -159,6 +159,20 @@ jacocoTestReport { } } +//task aonoengoeiioa { +// +// def tree = fileTree('src').include('**/*.java') +// tree.each { File file -> +// if (!file.isDirectory()) { +// def lines = file.readLines() +// if (lines.get(15).length() != 0) { +// lines.add(15, '') +// file.write(lines.stream().collect(Collectors.joining('\n'))); +// } +// } +// } +//} + //System.setProperty('java.awt.headless', 'false') //import groovy.swing.SwingBuilder // diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/BreadBotClient.java b/src/main/java/com/github/breadmoirai/breadbot/framework/BreadBotClient.java index 88a57555..91374262 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/BreadBotClient.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/BreadBotClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework; import com.github.breadmoirai.breadbot.framework.command.CommandHandle; @@ -53,4 +54,4 @@ public interface BreadBotClient { Map getCommandMap(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEngine.java b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEngine.java index a9963ff3..4b5354aa 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEngine.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEngine.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework; public interface CommandEngine { void handle(CommandEvent event); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEvent.java b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEvent.java index 1a3bd5c0..d605ae12 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEvent.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework; import com.github.breadmoirai.breadbot.framework.parameter.CommandArgument; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEventFactory.java b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEventFactory.java index f2127a7d..4d69d454 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEventFactory.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandEventFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework; import net.dv8tion.jda.core.entities.Message; @@ -24,4 +25,4 @@ public interface CommandEventFactory { CommandEvent createEvent(GenericGuildMessageEvent event, Message message, BreadBotClient client); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandModule.java b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandModule.java index ae62058a..367245be 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/CommandModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/CommandModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework; import com.github.breadmoirai.breadbot.framework.builder.BreadBotClientBuilder; @@ -47,4 +48,4 @@ default boolean loadJSONConfig(long guildId, JSONObject jsonObject) { return false; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommand.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommand.java index c0716305..965fedc2 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.breadbot.framework.annotation; import java.lang.annotation.*; @@ -34,4 +36,3 @@ */ String value() default ""; } - diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommands.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommands.java index a008ea61..dad67c77 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommands.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/ConfigureCommands.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.annotation; import java.lang.annotation.*; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/RegisterPropertyMapper.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/RegisterPropertyMapper.java index 1cbb4dcb..fbfee457 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/RegisterPropertyMapper.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/RegisterPropertyMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation; import java.lang.annotation.*; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Command.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Command.java index 5e13fc7c..9ff1c522 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Command.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Command.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -27,4 +28,4 @@ String[] value() default {}; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Delimiter.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Delimiter.java index 72b22410..8f99d83f 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Delimiter.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Delimiter.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -26,4 +27,4 @@ int limit() default 0; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Description.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Description.java index a3d06313..3236df30 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Description.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Description.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -26,4 +28,4 @@ * @return a non-null, non-empty String */ String value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Group.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Group.java index 8fad9327..9d8e68cc 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Group.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Group.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -26,4 +28,4 @@ * @return a non-null, non-empty String */ String value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/MainCommand.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/MainCommand.java index aaeee46f..43979af5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/MainCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/MainCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -28,4 +30,4 @@ public @interface MainCommand { String[] value() default {}; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Name.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Name.java index 431db56c..ae676ee9 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Name.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/Name.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -26,4 +28,4 @@ * @return a non-null, non-empty String */ String value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/RequiredParameters.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/RequiredParameters.java index b5823394..78acbf96 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/RequiredParameters.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/command/RequiredParameters.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.annotation.command; import java.lang.annotation.*; @@ -27,4 +29,4 @@ */ int[] value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Contiguous.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Contiguous.java index 91e4a48c..76750a8d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Contiguous.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Contiguous.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Flags.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Flags.java index d107d0f6..71ce8cb1 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Flags.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Flags.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -24,4 +25,4 @@ int value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/HandleAbsentArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/HandleAbsentArgument.java index 60c3e619..4378532d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/HandleAbsentArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/HandleAbsentArgument.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import com.github.breadmoirai.breadbot.framework.annotation.RegisterPropertyMapper; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Index.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Index.java index 8ebdf450..076cf9e8 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Index.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Index.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -24,4 +25,4 @@ int value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/MatchRegex.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/MatchRegex.java index d4df6500..59b25407 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/MatchRegex.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/MatchRegex.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -24,4 +25,4 @@ String value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Numeric.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Numeric.java index 2fc9849e..178d552d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Numeric.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Numeric.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -22,4 +23,4 @@ @Inherited public @interface Numeric { -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/RegisterArgumentMapper.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/RegisterArgumentMapper.java index dc467dc4..26b0ed88 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/RegisterArgumentMapper.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/RegisterArgumentMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import com.github.breadmoirai.breadbot.framework.parameter.ArgumentTypeMapper; @@ -26,4 +27,4 @@ Class>[] mapper() default {}; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Required.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Required.java index c1af3d13..b750e3d5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Required.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Required.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -22,4 +23,4 @@ @Inherited public @interface Required { -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Type.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Type.java index 37028b77..c3a1393e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Type.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Type.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -24,4 +25,4 @@ Class value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Width.java b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Width.java index 017f8e40..18d76862 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Width.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter/Width.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.annotation.parameter; import java.lang.annotation.*; @@ -24,4 +25,4 @@ int value(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/BreadBotClientBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/BreadBotClientBuilder.java index 3d8cc9cd..3f39aac7 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/BreadBotClientBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/BreadBotClientBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.BreadBotClient; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilder.java index 9d20a9e4..870d4db8 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilder.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.command.CommandPreprocessor; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilderFactory.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilderFactory.java index e899c50e..4c63d3b6 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilderFactory.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandHandleBuilderFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandModuleBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandModuleBuilder.java index ff658ace..5ab7634e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandModuleBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandModuleBuilder.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.CommandModule; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterBuilder.java index f6383b49..98ac8c51 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterBuilder.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.internal.parameter.CommandParameterTypeManagerImpl; @@ -122,4 +124,4 @@ default CommandParameterBuilder setBaseType(Class type, ArgumentTypeMappe T getProperty(Class propertyType); boolean hasProperty(Class propertyType); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterManagerBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterManagerBuilder.java index 96aba4a5..93fc7716 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterManagerBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandParameterManagerBuilder.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.parameter.ArgumentParser; @@ -57,4 +59,4 @@ default R registerArgumentMapperSimple(Class type, Predicate ArgumentParser getParser(Class type); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandPropertiesBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandPropertiesBuilder.java index 649ccfa2..a3e21877 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandPropertiesBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandPropertiesBuilder.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -143,6 +159,7 @@ public interface CommandPropertiesBuilder { * @param the property type */ R associatePreprocessorPredicateFactory(String identifier, Class propertyType, Function factory); + /** * Associates a preprocessor with a property. This does not replace any existing preprocessors associated with the property. * diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandResultManagerBuilder.java b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandResultManagerBuilder.java index d2f38127..dd2f4d23 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandResultManagerBuilder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/builder/CommandResultManagerBuilder.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.builder; import com.github.breadmoirai.breadbot.framework.command.CommandResultHandler; @@ -21,4 +23,4 @@ public interface CommandResultManagerBuilder { R registerResultHandler(Class resultType, CommandResultHandler handler); CommandResultHandler getResultHandler(Class resultType); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandHandle.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandHandle.java index 3ee6dd44..8a98f2ab 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandHandle.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandHandle.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessor.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessor.java index edbeeaa9..9648e559 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessor.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessor.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorFunction.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorFunction.java index ebc9049f..c45a274c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorFunction.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorFunction.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -57,4 +59,4 @@ public interface CommandPreprocessorFunction { */ void process(Object commandObj, CommandHandle targetHandle, CommandEvent event, CommandProcessStack processorStack); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorPredicate.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorPredicate.java index 298fa759..c28ef317 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorPredicate.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPreprocessorPredicate.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -39,4 +41,4 @@ default void process(Object commandObj, CommandHandle targetHandle, CommandEvent boolean test(CommandEvent event); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertiesManager.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertiesManager.java index e21ea8e6..777b1f35 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertiesManager.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertiesManager.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertyMap.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertyMap.java index 6a45d7cd..eba1d685 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertyMap.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandPropertyMap.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import java.util.Collection; @@ -75,4 +77,4 @@ default boolean testProperty(Class propertyType, Predicate test) { * @return the property map for inherited/default values. */ CommandPropertyMap getDefaultProperties(); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultHandler.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultHandler.java index cfb1cb00..f8d79da8 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultHandler.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultHandler.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -32,4 +34,4 @@ static void handleObject(CommandResultHandler handler, CommandHandle comm void handleResult(CommandHandle command, CommandEvent event, T result); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultManager.java b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultManager.java index a418fb37..10da8e40 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultManager.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/command/CommandResultManager.java @@ -1,21 +1,23 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.command; public interface CommandResultManager { CommandResultHandler getResultHandler(Class resultType); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandParameters.java b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandParameters.java index c6a568c9..d8c29e88 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandParameters.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandParameters.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.defaults; import com.github.breadmoirai.breadbot.framework.internal.parameter.CommandParameterTypeManagerImpl; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandProperties.java b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandProperties.java index b919cd58..234f9e65 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandProperties.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandProperties.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.defaults; import com.github.breadmoirai.breadbot.framework.annotation.ConfigureCommand; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandResultHandlers.java b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandResultHandlers.java index a7ea3321..6c024ba2 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandResultHandlers.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/defaults/DefaultCommandResultHandlers.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.defaults; import com.github.breadmoirai.breadbot.framework.internal.command.CommandResultManagerImpl; @@ -33,4 +35,4 @@ public void initialize(CommandResultManagerImpl manager) { manager.registerResultHandler(Emoji.class, (command, event, result) -> event.replyReaction(result.getUtf8())); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/AmbiguousCommandMethod.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/AmbiguousCommandMethod.java index 7afe9a54..7c4c04cf 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/AmbiguousCommandMethod.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/AmbiguousCommandMethod.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; import java.lang.reflect.Method; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/BreadBotException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/BreadBotException.java index cd53a8bc..d0859a28 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/BreadBotException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/BreadBotException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; /** @@ -34,4 +36,4 @@ public BreadBotException(Throwable cause) { protected BreadBotException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/CommandInitializationException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/CommandInitializationException.java index 6897053e..30fb9d2c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/CommandInitializationException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/CommandInitializationException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class CommandInitializationException extends BreadBotException { @@ -22,4 +24,4 @@ public CommandInitializationException(String message) { public CommandInitializationException(String message, Throwable cause) { super(message, cause); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/DuplicateCommandKeyException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/DuplicateCommandKeyException.java index 5fd227fe..fb4c120a 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/DuplicateCommandKeyException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/DuplicateCommandKeyException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class DuplicateCommandKeyException extends Exception { @@ -19,4 +21,4 @@ public class DuplicateCommandKeyException extends Exception { public DuplicateCommandKeyException(String key, Object a, Object b) { super("Duplicate Command key: \"" + key + "\" found for " + a + " and " + b); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/EmptyCommandAnnotation.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/EmptyCommandAnnotation.java index cd0da4c1..a267418e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/EmptyCommandAnnotation.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/EmptyCommandAnnotation.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class EmptyCommandAnnotation extends CommandInitializationException { @@ -20,4 +22,4 @@ public class EmptyCommandAnnotation extends CommandInitializationException { public EmptyCommandAnnotation(Class klass) { super("Command Class: " + klass.getName() + " is marked with an empty @Command. Please specify a key. ex: @Command(\"key\")."); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandKeyException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandKeyException.java index 6b79e1fa..bd8880ae 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandKeyException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandKeyException.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; import com.github.breadmoirai.breadbot.framework.command.CommandHandle; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandMethod.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandMethod.java index d606594a..b2380c4c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandMethod.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingCommandMethod.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class MissingCommandMethod extends CommandInitializationException { diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingMainCommandException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingMainCommandException.java index 62d34b41..91c8da2d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingMainCommandException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingMainCommandException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class MissingMainCommandException extends CommandInitializationException { @@ -20,4 +22,4 @@ public MissingMainCommandException(Class commandClass) { super("If you want to register " + commandClass.getSimpleName() + " as a single command, you must add an @MainCommand annotation to one method." + " Otherwise use #createCommands or #addCommands instead to register as multiple commands."); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingTypeMapperException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingTypeMapperException.java index 7fede24f..490caa69 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingTypeMapperException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/MissingTypeMapperException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class MissingTypeMapperException extends CommandInitializationException { @@ -20,4 +22,4 @@ public MissingTypeMapperException(String methodName, String paramName) { super("Command Parameter: \"" + paramName + "\" in method \"" + methodName + "\" does not have a type mapper registered."); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/NoSuchCommandException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/NoSuchCommandException.java index 85b9b141..66738c98 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/NoSuchCommandException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/NoSuchCommandException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class NoSuchCommandException extends RuntimeException { @@ -19,4 +21,4 @@ public class NoSuchCommandException extends RuntimeException { public NoSuchCommandException(String message) { super(message); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/TooManyMainCommandsException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/TooManyMainCommandsException.java index 7b4ff21b..6f791e6e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/TooManyMainCommandsException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/TooManyMainCommandsException.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class TooManyMainCommandsException extends CommandInitializationException { @@ -19,4 +21,4 @@ public class TooManyMainCommandsException extends CommandInitializationException public TooManyMainCommandsException(Class commandClass) { super(commandClass.getSimpleName() + " has multiple methods marked with @MainCommand. Only one method may have this annotation."); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/error/TypeFinderException.java b/src/main/java/com/github/breadmoirai/breadbot/framework/error/TypeFinderException.java index 6d87e946..e0cf9699 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/error/TypeFinderException.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/error/TypeFinderException.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.error; public class TypeFinderException extends RuntimeException { diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/BreadBotClientImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/BreadBotClientImpl.java index bf533362..56fdd291 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/BreadBotClientImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/BreadBotClientImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.internal; import com.github.breadmoirai.breadbot.framework.*; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandHandleImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandHandleImpl.java index 1cbc217c..ecb5f38a 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandHandleImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandHandleImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandObjectFactory.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandObjectFactory.java index ac44b912..6dd02d7d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandObjectFactory.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandObjectFactory.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.util.ExceptionalSupplier; @@ -48,4 +50,4 @@ public Object get() { } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPackageProperties.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPackageProperties.java index 50727ccc..29381823 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPackageProperties.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPackageProperties.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.command.CommandPropertyMap; @@ -53,4 +55,4 @@ private static CommandPropertyMap createPropertiesForPackage(Package p) { return map; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandProcessStack.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandProcessStack.java index f6b78f93..1ac9732c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandProcessStack.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandProcessStack.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertiesManagerImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertiesManagerImpl.java index 3cfda562..1663f015 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertiesManagerImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertiesManagerImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.builder.CommandHandleBuilder; @@ -194,4 +196,4 @@ public int compare(CommandPreprocessor o1, CommandPreprocessor o2) { } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertyMapImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertyMapImpl.java index 20994be6..2b287617 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertyMapImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandPropertyMapImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.annotation.RegisterPropertyMapper; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandResultManagerImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandResultManagerImpl.java index 8b4eefc1..1690f2b4 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandResultManagerImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandResultManagerImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.builder.CommandResultManagerBuilder; @@ -72,4 +74,4 @@ private CommandResultHandler getOneHandlerForEverything() { .ifPresent(pair -> CommandResultHandler.handleObject(pair.getRight(), command, event, result)); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandRunner.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandRunner.java index 37f323a6..4a1f7203 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandRunner.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/CommandRunner.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommand.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommand.java index badf7061..12899be5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommand.java @@ -1,21 +1,23 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; public interface InvokableCommand { Object invoke(Object object, Object[] parameters) throws Throwable; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommandHandle.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommandHandle.java index cc252741..88a54f58 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommandHandle.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/InvokableCommandHandle.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command; import java.lang.invoke.MethodHandle; @@ -28,4 +30,4 @@ public InvokableCommandHandle(MethodHandle handle) { public Object invoke(Object object, Object[] parameters) throws Throwable { return handle.invoke(object, parameters); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryImpl.java index 42dee231..c1836c85 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -415,4 +417,4 @@ public void requireNoCommandAnnotation(Class aClass) { "you must remove the @Command annotation. " + "Otherwise use #createCommand or #addCommand instead to register as a single command with subcommands."); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryInternal.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryInternal.java index eaf6dad5..95d19118 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryInternal.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderFactoryInternal.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderImpl.java index 4b10d67f..6daf736e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command.builder; import com.github.breadmoirai.breadbot.framework.annotation.command.Command; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderInternal.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderInternal.java index 2073bce2..469725ad 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderInternal.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/command/builder/CommandHandleBuilderInternal.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.command.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/CommandEventFactoryImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/CommandEventFactoryImpl.java index 2a6a5597..f0e7256b 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/CommandEventFactoryImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/CommandEventFactoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.internal.event; import com.github.breadmoirai.breadbot.framework.BreadBotClient; @@ -79,4 +80,4 @@ private CommandEvent parseContent(GenericGuildMessageEvent event, Message messag } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/MessageReceivedCommandEvent.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/MessageReceivedCommandEvent.java index fbe2b057..8c957dec 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/MessageReceivedCommandEvent.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/MessageReceivedCommandEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.framework.internal.event; import com.github.breadmoirai.breadbot.framework.BreadBotClient; @@ -180,4 +181,4 @@ public void replyReaction(String emoji) { // } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/SerializableCommandEvent.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/SerializableCommandEvent.java index 0e80fc70..6158f18f 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/SerializableCommandEvent.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/event/SerializableCommandEvent.java @@ -13,6 +13,7 @@ // * See the License for the specific language governing permissions and // * limitations under the License. // */ + //package com.github.breadmoirai.breadbot.framework.event.impl; // //import com.github.breadmoirai.breadbot.framework.event.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandArgumentFactory.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandArgumentFactory.java index 6bf2852b..ff5e5df0 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandArgumentFactory.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandArgumentFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterCollectionImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterCollectionImpl.java index 8739068f..5779fe63 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterCollectionImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterCollectionImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter; import com.github.breadmoirai.breadbot.framework.parameter.CommandArgumentList; @@ -82,4 +84,4 @@ public int getWidth() { public boolean isMustBePresent() { return commandParameter.isMustBePresent(); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterFunctionImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterFunctionImpl.java index 59296bca..d0f4613a 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterFunctionImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterFunctionImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter; import com.github.breadmoirai.breadbot.framework.parameter.CommandArgumentList; @@ -62,4 +64,4 @@ public int getWidth() { public boolean isMustBePresent() { return false; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterImpl.java index 19ad40aa..dab73897 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter; import com.github.breadmoirai.breadbot.framework.internal.parameter.arguments.GenericCommandArgument; @@ -103,4 +119,4 @@ public boolean isMustBePresent() { return mustBePresent; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterTypeManagerImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterTypeManagerImpl.java index 531fbb3c..e3db71c1 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterTypeManagerImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/CommandParameterTypeManagerImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter; import com.github.breadmoirai.breadbot.framework.builder.CommandParameterManagerBuilder; @@ -55,4 +57,4 @@ public ArgumentParser getParser(Class type) { public void put(Class type, ArgumentParser parser) { map.put(type, parser); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmojiArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmojiArgument.java index 7879df93..9f2ec8e0 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmojiArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmojiArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmoteArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmoteArgument.java index d4f145eb..43a8592d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmoteArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/EmoteArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/GenericCommandArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/GenericCommandArgument.java index dfa19fb8..89e79d68 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/GenericCommandArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/GenericCommandArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidMentionArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidMentionArgument.java index 3ef58fe9..9360e0bc 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidMentionArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidMentionArgument.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -38,4 +40,4 @@ public long getInvalidId() { return id; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidRoleArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidRoleArgument.java index 0116c274..799bf1f9 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidRoleArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidRoleArgument.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -26,4 +28,4 @@ public InvalidRoleArgument(CommandEvent event, String s, long idLong) { public boolean isRole() { return true; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidTextChannelArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidTextChannelArgument.java index 66035606..7a82ebc5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidTextChannelArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidTextChannelArgument.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -26,4 +28,4 @@ public InvalidTextChannelArgument(CommandEvent event, String s, long idLong) { public boolean isTextChannel() { return true; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidUserArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidUserArgument.java index d28f6439..e66dd70d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidUserArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/InvalidUserArgument.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -26,4 +28,4 @@ public InvalidUserArgument(CommandEvent event, String s, long idLong) { public boolean isUser() { return true; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MemberArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MemberArgument.java index fa66af42..58d08fd3 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MemberArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MemberArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MentionArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MentionArgument.java index c80b0ed1..96c3e158 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MentionArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/MentionArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/RoleArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/RoleArgument.java index f2b3b76d..12137514 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/RoleArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/RoleArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/TextChannelArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/TextChannelArgument.java index 2111cd64..2a0c2b03 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/TextChannelArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/TextChannelArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/UserArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/UserArgument.java index ebbc6f88..bddbd57f 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/UserArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/arguments/UserArgument.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.arguments; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderFactory.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderFactory.java index f5c04fdb..4a1a0ff5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderFactory.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderFactory.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.builder; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -46,4 +48,4 @@ public CommandParameterBuilder builder(Parameter parameter) { return param; } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderImpl.java index d9175bbe..11dfee53 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterBuilderImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.builder; import com.github.breadmoirai.breadbot.framework.builder.BreadBotClientBuilder; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterFunctionBuilderImpl.java b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterFunctionBuilderImpl.java index a14c39b6..abc45e90 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterFunctionBuilderImpl.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/internal/parameter/builder/CommandParameterFunctionBuilderImpl.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.internal.parameter.builder; import com.github.breadmoirai.breadbot.framework.builder.CommandParameterBuilder; @@ -124,4 +126,4 @@ public CommandParameter build() { public Object apply(CommandParser parser) { return function.apply(parser); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/AbsentArgumentHandler.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/AbsentArgumentHandler.java index 6058870d..2100cd70 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/AbsentArgumentHandler.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/AbsentArgumentHandler.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentFlags.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentFlags.java index a9b58cdc..6cfde566 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentFlags.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentFlags.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; import gnu.trove.map.TObjectIntMap; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentParser.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentParser.java index d1dc4298..1bd51c4a 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentParser.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentParser.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; public class ArgumentParser implements ArgumentTypeMapper, ArgumentTypePredicate { @@ -65,4 +67,4 @@ public ArgumentTypePredicate getPredicate() { public ArgumentTypeMapper getMapper() { return mapper; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypeMapper.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypeMapper.java index e0a36a6f..b35f93d1 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypeMapper.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypeMapper.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; /** diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypePredicate.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypePredicate.java index 342c24eb..90666344 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypePredicate.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/ArgumentTypePredicate.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; @FunctionalInterface diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgument.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgument.java index 038d06ec..492bdc65 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgument.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgument.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; import com.github.breadmoirai.breadbot.framework.BreadBotClient; @@ -522,4 +524,4 @@ default Emote getEmote() { default Emoji getEmoji() { throw new UnsupportedOperationException("This argument is not an Emoji"); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgumentList.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgumentList.java index f12e4db8..dd6a9c6d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgumentList.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandArgumentList.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameter.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameter.java index 7b8e653d..8b615fa2 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameter.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameter.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; public interface CommandParameter { diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameterTypeManager.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameterTypeManager.java index de39c420..05d59550 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameterTypeManager.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParameterTypeManager.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; public interface CommandParameterTypeManager { diff --git a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParser.java b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParser.java index d8b85a2d..c04004a8 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParser.java +++ b/src/main/java/com/github/breadmoirai/breadbot/framework/parameter/CommandParser.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.framework.parameter; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -128,4 +130,4 @@ public boolean mapAll() { while (hasNext()) mapNext(); return !hasFailed(); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/Admin.java b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/Admin.java index f1a1e9ef..aa651546 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/Admin.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/Admin.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.admin; import java.lang.annotation.ElementType; @@ -23,4 +24,4 @@ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Admin { -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminCommand.java b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminCommand.java index c6c784ad..ac639ecc 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminCommand.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.admin; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -33,4 +34,4 @@ public void admin(CommandEvent event, AdminModule module) { // public void getHelp(CommandEvent event) { // event.reply("This command shows which users have the authority to use Administrative commands"); // } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminModule.java index 86667e8b..3bb440e2 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/AdminModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.admin; import com.github.breadmoirai.breadbot.framework.CommandModule; @@ -33,4 +34,4 @@ default void initialize(BreadBotClientBuilder builder) { builder.associatePreprocessorPredicate("admin", Admin.class, event -> isAdmin(event.getMember())); builder.addCommand(AdminCommand.class); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/DefaultAdminModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/DefaultAdminModule.java index ea3b55d9..39c26d45 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/admin/DefaultAdminModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/admin/DefaultAdminModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.admin; import net.dv8tion.jda.core.Permission; @@ -36,4 +37,4 @@ public DefaultAdminModule() { public boolean isAdmin(Member member) { return adminPredicate.test(member); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/owner/Owner.java b/src/main/java/com/github/breadmoirai/breadbot/modules/owner/Owner.java index 8b3c3b14..fb84cf19 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/owner/Owner.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/owner/Owner.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.owner; import java.lang.annotation.ElementType; @@ -23,4 +24,4 @@ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Owner { -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/owner/OwnerModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/owner/OwnerModule.java index 20e32b84..97230511 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/owner/OwnerModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/owner/OwnerModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.owner; import com.github.breadmoirai.breadbot.framework.CommandModule; @@ -41,4 +42,4 @@ public boolean isOwner(User author) { public void initialize(BreadBotClientBuilder builder) { builder.associatePreprocessorPredicate("owner", Owner.class, event -> isOwner(event.getAuthor())); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/DefaultPrefixModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/DefaultPrefixModule.java index 45852789..8425b77f 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/DefaultPrefixModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/DefaultPrefixModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.prefix; import net.dv8tion.jda.core.entities.Guild; @@ -33,4 +34,4 @@ public String getPrefix(Guild guild) { return defaultPrefix; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixCommand.java b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixCommand.java index 16cbc2b5..3618ceb6 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixCommand.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.prefix; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixModule.java index b0fba437..837e28c5 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/prefix/PrefixModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.prefix; import com.github.breadmoirai.breadbot.framework.CommandModule; @@ -35,4 +36,4 @@ default String getName() { } String getPrefix(Guild guild); -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/source/GuildRestrictionModule.java b/src/main/java/com/github/breadmoirai/breadbot/modules/source/GuildRestrictionModule.java index 286acc22..8d778f4d 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/source/GuildRestrictionModule.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/source/GuildRestrictionModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.source; import com.github.breadmoirai.breadbot.framework.CommandModule; @@ -35,4 +36,4 @@ public void initialize(BreadBotClientBuilder builder) { (CommandPreprocessorPredicate) event -> event.getGuildId() == restrictToGuild.value()); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/modules/source/RestrictToGuild.java b/src/main/java/com/github/breadmoirai/breadbot/modules/source/RestrictToGuild.java index 745f8aa8..d1532e3c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/modules/source/RestrictToGuild.java +++ b/src/main/java/com/github/breadmoirai/breadbot/modules/source/RestrictToGuild.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.github.breadmoirai.breadbot.modules.source; import java.lang.annotation.ElementType; @@ -25,4 +26,4 @@ public @interface RestrictToGuild { long value() default 0; -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/AbsentArgumentHandlerInstantiator.java b/src/main/java/com/github/breadmoirai/breadbot/util/AbsentArgumentHandlerInstantiator.java index a2ea8d28..2c796454 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/AbsentArgumentHandlerInstantiator.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/AbsentArgumentHandlerInstantiator.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.annotation.parameter.HandleAbsentArgument; @@ -34,4 +36,4 @@ public Object apply(HandleAbsentArgument ifNotFound) { throw new RuntimeException(e); } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/Arguments.java b/src/main/java/com/github/breadmoirai/breadbot/util/Arguments.java index e7717bf1..c9beb31b 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/Arguments.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/Arguments.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import org.jetbrains.annotations.Contract; diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/AttachmentUtil.java b/src/main/java/com/github/breadmoirai/breadbot/util/AttachmentUtil.java index e40a616b..e9c0a71a 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/AttachmentUtil.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/AttachmentUtil.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import net.dv8tion.jda.core.JDA; @@ -40,4 +42,4 @@ public static InputStream openStream(JDA api, Message.Attachment attachment) thr } return body.byteStream(); } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/ConfigCommand.java b/src/main/java/com/github/breadmoirai/breadbot/util/ConfigCommand.java index 13b4934f..3078569c 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/ConfigCommand.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/ConfigCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -86,4 +88,4 @@ public void upload(CommandEvent event, Message.Attachment file) { event.reply("```diff\n-" + e.getMessage() + "```"); } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/DateTimeMapper.java b/src/main/java/com/github/breadmoirai/breadbot/util/DateTimeMapper.java index 34e8db6a..82602879 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/DateTimeMapper.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/DateTimeMapper.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.parameter.CommandArgument; @@ -97,4 +99,4 @@ public OffsetDateTime apply(CommandArgument argument) { } return offsetDateTime; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/DiscordPatterns.java b/src/main/java/com/github/breadmoirai/breadbot/util/DiscordPatterns.java index c13757b4..6a5155bb 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/DiscordPatterns.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/DiscordPatterns.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/DurationMapper.java b/src/main/java/com/github/breadmoirai/breadbot/util/DurationMapper.java index 4d41f636..a68970d0 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/DurationMapper.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/DurationMapper.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.parameter.CommandArgument; @@ -113,4 +115,4 @@ public Duration apply(CommandArgument argument) { } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/Emoji.java b/src/main/java/com/github/breadmoirai/breadbot/util/Emoji.java index 759be3a6..09adc289 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/Emoji.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/Emoji.java @@ -1,19 +1,19 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package com.github.breadmoirai.breadbot.util; import java.util.Arrays; @@ -1463,4 +1463,4 @@ else if (compare > 0) return -1; } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/EmojiEmote.java b/src/main/java/com/github/breadmoirai/breadbot/util/EmojiEmote.java index 041667d1..7ab8dc28 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/EmojiEmote.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/EmojiEmote.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import net.dv8tion.jda.client.managers.EmoteManager; diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/EventStringIterator.java b/src/main/java/com/github/breadmoirai/breadbot/util/EventStringIterator.java index 19b47368..9cd958a7 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/EventStringIterator.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/EventStringIterator.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/ExceptionalSupplier.java b/src/main/java/com/github/breadmoirai/breadbot/util/ExceptionalSupplier.java index e9369ab9..5468b57e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/ExceptionalSupplier.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/ExceptionalSupplier.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import java.util.function.Supplier; diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/Iterators.java b/src/main/java/com/github/breadmoirai/breadbot/util/Iterators.java index f9c93a65..1faa9808 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/Iterators.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/Iterators.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import java.util.Iterator; @@ -56,4 +58,4 @@ public void remove() { } } -} +} \ No newline at end of file diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/TypeFinder.java b/src/main/java/com/github/breadmoirai/breadbot/util/TypeFinder.java index c8afdda1..cb9bd551 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/TypeFinder.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/TypeFinder.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.breadbot.util; import com.github.breadmoirai.breadbot.framework.error.TypeFinderException; @@ -14,7 +30,6 @@ public static Type[] getTypeArguments(Class cls, final Class toClass) { final Type superclass = cls.getGenericSuperclass(); if (superclass instanceof ParameterizedType) { return ((ParameterizedType) superclass).getActualTypeArguments(); - } - else return getTypeArguments((Class) superclass, toClass); + } else return getTypeArguments((Class) superclass, toClass); } } diff --git a/src/main/java/com/github/breadmoirai/breadbot/util/UnknownEmote.java b/src/main/java/com/github/breadmoirai/breadbot/util/UnknownEmote.java index 10959d29..27adec8e 100644 --- a/src/main/java/com/github/breadmoirai/breadbot/util/UnknownEmote.java +++ b/src/main/java/com/github/breadmoirai/breadbot/util/UnknownEmote.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 Ton Ly (BreadMoirai) + * Copyright 2017 Ton Ly (BreadMoirai) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/com/github/breadmoirai/tests/BuilderTest.java b/src/test/java/com/github/breadmoirai/tests/BuilderTest.java index 79d53693..89071f41 100644 --- a/src/test/java/com/github/breadmoirai/tests/BuilderTest.java +++ b/src/test/java/com/github/breadmoirai/tests/BuilderTest.java @@ -1,17 +1,20 @@ -package com.github.breadmoirai.tests;/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +package com.github.breadmoirai.tests; import com.github.breadmoirai.breadbot.framework.builder.BreadBotClientBuilder; import com.github.breadmoirai.breadbot.framework.error.MissingCommandKeyException; @@ -25,4 +28,4 @@ public void missingKey() { .addCommand(commandEvent -> {}, configurator -> {}) .build(); } -} +} \ No newline at end of file diff --git a/src/test/java/com/github/breadmoirai/tests/client/ClientTest.java b/src/test/java/com/github/breadmoirai/tests/client/ClientTest.java index eb9f0d6d..6c6b8f29 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/ClientTest.java +++ b/src/test/java/com/github/breadmoirai/tests/client/ClientTest.java @@ -1,17 +1,20 @@ -package com.github.breadmoirai.tests.client;/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.BreadBotClient; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -19,7 +22,6 @@ import com.github.breadmoirai.breadbot.framework.builder.CommandHandleBuilder; import com.github.breadmoirai.breadbot.framework.internal.event.CommandEventFactoryImpl; import com.github.breadmoirai.breadbot.modules.prefix.DefaultPrefixModule; -import com.github.breadmoirai.breadbot.util.DiscordPatterns; import com.github.breadmoirai.breadbot.util.Emoji; import net.dv8tion.jda.core.entities.Guild; import net.dv8tion.jda.core.entities.Message; @@ -253,9 +255,9 @@ private void assertResponse(final String input, final String expected) { // when(mockInput.getGuild()).thenReturn(mockGuild); // - final String[] split = DiscordPatterns.WHITE_SPACE.split(input.substring(1), 2); - final String key = split[0]; - final String content = split.length > 1 ? split[1].trim() : null; +// final String[] split = DiscordPatterns.WHITE_SPACE.split(input.substring(1), 2); +// final String key = split[0]; +// final String content = split.length > 1 ? split[1].trim() : null; CommandEventFactoryImpl eventFactory = new CommandEventFactoryImpl(new DefaultPrefixModule("!")); diff --git a/src/test/java/com/github/breadmoirai/tests/client/ColorCommand.java b/src/test/java/com/github/breadmoirai/tests/client/ColorCommand.java index 76c2f1df..0dd6379b 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/ColorCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/ColorCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.annotation.command.MainCommand; @@ -26,4 +28,4 @@ public Color color(String s) throws IllegalAccessException, NoSuchFieldException Field field = Color.class.getField(s); return (Color) field.get(null); } -} +} \ No newline at end of file diff --git a/src/test/java/com/github/breadmoirai/tests/client/CountCommand.java b/src/test/java/com/github/breadmoirai/tests/client/CountCommand.java index 2a62f514..b0473f5a 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/CountCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/CountCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client;/* Copyright 2017 Ton Ly Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/src/test/java/com/github/breadmoirai/tests/client/EmojiCommand.java b/src/test/java/com/github/breadmoirai/tests/client/EmojiCommand.java index 8d373bf5..b7786bc3 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/EmojiCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/EmojiCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/test/java/com/github/breadmoirai/tests/client/HelpCommand.java b/src/test/java/com/github/breadmoirai/tests/client/HelpCommand.java index aa0f50c8..a2bf811c 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/HelpCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/HelpCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.annotation.command.Command; diff --git a/src/test/java/com/github/breadmoirai/tests/client/MathCommand.java b/src/test/java/com/github/breadmoirai/tests/client/MathCommand.java index 23305460..03dcb697 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/MathCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/MathCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/test/java/com/github/breadmoirai/tests/client/MirrorCommand.java b/src/test/java/com/github/breadmoirai/tests/client/MirrorCommand.java index f09287ad..9c8c68ad 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/MirrorCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/MirrorCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.annotation.command.MainCommand; @@ -30,4 +32,4 @@ private static String reverseString(String s) { public String reverse(String s) { return reverseString(s); } -} +} \ No newline at end of file diff --git a/src/test/java/com/github/breadmoirai/tests/client/NameCommand.java b/src/test/java/com/github/breadmoirai/tests/client/NameCommand.java index 8329e729..6efba77b 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/NameCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/NameCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client;/* Copyright 2017 Ton Ly Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/src/test/java/com/github/breadmoirai/tests/client/PingCommand.java b/src/test/java/com/github/breadmoirai/tests/client/PingCommand.java index fd2def8f..9c0ccd45 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/PingCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/PingCommand.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.CommandEvent; @@ -24,4 +26,4 @@ public void ping(CommandEvent event) { event.reply("pong"); } -} +} \ No newline at end of file diff --git a/src/test/java/com/github/breadmoirai/tests/client/StaticCommand.java b/src/test/java/com/github/breadmoirai/tests/client/StaticCommand.java index faeef6c5..7c00bb7e 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/StaticCommand.java +++ b/src/test/java/com/github/breadmoirai/tests/client/StaticCommand.java @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.CommandEvent; diff --git a/src/test/java/com/github/breadmoirai/tests/client/TypeTestKeyTest.java b/src/test/java/com/github/breadmoirai/tests/client/TypeTestKeyTest.java index cabdc93f..c23fde57 100644 --- a/src/test/java/com/github/breadmoirai/tests/client/TypeTestKeyTest.java +++ b/src/test/java/com/github/breadmoirai/tests/client/TypeTestKeyTest.java @@ -1,17 +1,19 @@ -/* Copyright 2017 Ton Ly - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ +/* + * Copyright 2017 Ton Ly (BreadMoirai) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.github.breadmoirai.tests.client; import com.github.breadmoirai.breadbot.framework.annotation.command.Command; @@ -31,4 +33,4 @@ public String addTen(@Type(int.class) CommandArgument argument) { public String addTenMore() { return "21"; } -} +} \ No newline at end of file