Release v1.0.0 #345

Merged
greg6775 merged 68 commits from greg-dev into master 2020-01-24 17:49:10 +01:00
3 changed files with 30 additions and 8 deletions
Showing only changes of commit 17b63d09ef - Show all commits

View file

@ -1,5 +1,17 @@
/* /*
* @author Hax / Hax6775 / Schlauer_Hax * Copyright 2019-2020 GregTCLTK and Schlauer-Hax
*
* Licensed under the GNU Affero General Public License, Version 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/agpl-3.0.en.html
*
* 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.bbn.hadder; package com.bbn.hadder;

View file

@ -1,5 +1,17 @@
/* /*
* @author Hax / Hax6775 / Schlauer_Hax * Copyright 2019-2020 GregTCLTK and Schlauer-Hax
*
* Licensed under the GNU Affero General Public License, Version 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/agpl-3.0.en.html
*
* 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.bbn.hadder; package com.bbn.hadder;
@ -74,4 +86,4 @@ public class RethinkUser {
public void push() { public void push() {
rethink.pushUser(this); rethink.pushUser(this);
} }
} }

View file

@ -53,7 +53,7 @@ public class StarboardListener extends ListenerAdapter {
if (rethink.hasStarboardChannel(e.getGuild().getId())) { if (rethink.hasStarboardChannel(e.getGuild().getId())) {
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue( e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
msg -> { msg -> {
Integer stars = 0; int stars = 0;
for (MessageReaction reaction : msg.getReactions()) { for (MessageReaction reaction : msg.getReactions()) {
if (reaction.getReactionEmote().getName().equals("")) { if (reaction.getReactionEmote().getName().equals("")) {
stars = reaction.getCount(); stars = reaction.getCount();
@ -82,14 +82,14 @@ public class StarboardListener extends ListenerAdapter {
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue( e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
msg -> { msg -> {
Integer stars = 0; int stars = 0;
for (MessageReaction reaction : msg.getReactions()) { for (MessageReaction reaction : msg.getReactions()) {
if (reaction.getReactionEmote().getName().equals("")) { if (reaction.getReactionEmote().getName().equals("")) {
stars = reaction.getCount(); stars = reaction.getCount();
} }
} }
Integer finalStars = stars; int finalStars = stars;
e.getGuild().getTextChannelById(rethinkServer.getStarboard()) e.getGuild().getTextChannelById(rethinkServer.getStarboard())
.retrieveMessageById(rethink.getStarboardMessage(e.getMessageId())).queue( .retrieveMessageById(rethink.getStarboardMessage(e.getMessageId())).queue(
msg2 -> { msg2 -> {
@ -108,10 +108,8 @@ public class StarboardListener extends ListenerAdapter {
} }
} }
); );
} }
); );
} }
} }
} }