Skip to content

Commit

Permalink
Merge pull request #235 from beanbeanjuice/integration
Browse files Browse the repository at this point in the history
Ready for Release v2.4.2
  • Loading branch information
beanbeanjuice committed May 29, 2021
2 parents f5ed6d0 + 4835f52 commit b4d8b56
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Expand Up @@ -19,7 +19,7 @@
<br />
<p align="center">
<a href="https://github.com/beanbeanjuice/cafeBot">
<img src="images/logo.gif" alt="Logo" width="260" height="186">
<img src="http://cdn.beanbeanjuice.com/images/cafeBot/readme/logo.gif" alt="Logo" width="260" height="186">
</a>

<h3 align="center">cafeBot</h3>
Expand Down Expand Up @@ -123,7 +123,7 @@ This is an example of how to list things you need to use the software and how to
* `!!get-prefix` - Gets the current prefix for the server if you forget it!

<p align="center">
<img src=images/help.png>
<img src=http://cdn.beanbeanjuice.com/images/cafeBot/readme/help.png>
</p>

As you can see, this was shown using the command `!!help order`. It shows each parameter you can run. For example, `<parameter 1>` needs to be a number and it is `REQUIRED` and `<parameter 2>` is a discord user and is also `REQUIRED`. So this means, to run the `order` command, I would do something like, `!!order 2 @beanbeanjuice`.
Expand Down Expand Up @@ -278,5 +278,4 @@ Project Link: [https://github.com/beanbeanjuice/cafeBot](https://github.com/bean
[license-url]: https://github.com/beanbeanjuice/cafeBot/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/beanbeanjuice
[product-title]: images/cafeBot.png
[help-screenshot]: images/help.png
[product-title]: http://cdn.beanbeanjuice.com/images/cafeBot//readme/cafeBot.png
Binary file removed images/cafeBot.png
Binary file not shown.
Binary file removed images/help.png
Binary file not shown.
Binary file removed images/logo.gif
Binary file not shown.
@@ -1,6 +1,7 @@
package com.beanbeanjuice.utility.listener;

import com.beanbeanjuice.main.CafeBot;
import com.beanbeanjuice.utility.logger.LogLevel;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.MessageEmbed;
import net.dv8tion.jda.api.entities.TextChannel;
Expand Down Expand Up @@ -35,7 +36,6 @@ public void onGuildLeave(@NotNull GuildLeaveEvent event) {

@Override
public void onGuildJoin(@NotNull GuildJoinEvent event) {

TextChannel channel = event.getGuild().getDefaultChannel();

if (channel != null) {
Expand All @@ -44,6 +44,7 @@ public void onGuildJoin(@NotNull GuildJoinEvent event) {

CafeBot.getGuildHandler().addGuild(event.getGuild());
CafeBot.updateGuildPresence(); // Updates the amount of servers in the status.
CafeBot.getLogManager().log(this.getClass(), LogLevel.INFO, event.getGuild().getName() + " has added me!", false, true);
}

@Override
Expand Down

0 comments on commit b4d8b56

Please sign in to comment.