Last active
November 25, 2022 10:29
-
-
Save itsmefox/93bbb8f60bee0964b8881c3bb9316bdb to your computer and use it in GitHub Desktop.
Create your Discord Bot with aluna-spring-boot-starter - BotReadyListener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
class BotReadyListener : ApplicationListener<DiscordFirstShardReadyEvent> { | |
override fun onApplicationEvent(event: DiscordFirstShardReadyEvent) { | |
//Set the status of the bot as soon as possible | |
event.shardManager.setPresence(OnlineStatus.ONLINE, Activity.playing("I'm Ready")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment