From d0386a4c45430d15906b10a421d11605dfa8080d Mon Sep 17 00:00:00 2001 From: condolent Date: Mon, 20 Apr 2020 19:33:55 +0200 Subject: [PATCH] Prefix changes --- README.md | 6 +++--- src/main/java/com/jonteohr/discord/guardian/App.java | 2 +- .../com/jonteohr/discord/guardian/events/GuildReady.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3cd75d..b55d58e 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Channel Guardian allows you to password protect text channels via one simple command. The bot will then hide the channel for everyone without the correct role. # Usage -* `!password` - Get information regarding how to access a protected channel. -* `!protect <#channel> ` - Password protect the mentioned channel. Hiding it for everyone else. -* `!unprotect <#channel>` - Removes the password protection and resets it to its previous state. +* `g!password` - Get information regarding how to access a protected channel. +* `g!protect <#channel> ` - Password protect the mentioned channel. Hiding it for everyone else. +* `g!unprotect <#channel>` - Removes the password protection and resets it to its previous state. --- diff --git a/src/main/java/com/jonteohr/discord/guardian/App.java b/src/main/java/com/jonteohr/discord/guardian/App.java index fc879ea..5b8b73f 100644 --- a/src/main/java/com/jonteohr/discord/guardian/App.java +++ b/src/main/java/com/jonteohr/discord/guardian/App.java @@ -21,7 +21,7 @@ public class App { public static JDA jda; - public static String prefix = "!"; + public static String prefix = "g!"; public static int color = 0x3FB8FE; public static String image = "https://netcube.xyz/guardian.png"; diff --git a/src/main/java/com/jonteohr/discord/guardian/events/GuildReady.java b/src/main/java/com/jonteohr/discord/guardian/events/GuildReady.java index dc3ac90..c5ac4dc 100644 --- a/src/main/java/com/jonteohr/discord/guardian/events/GuildReady.java +++ b/src/main/java/com/jonteohr/discord/guardian/events/GuildReady.java @@ -44,7 +44,7 @@ private void joinedGuild(Guild guild, JDA jda) { newGuild(guild); } - jda.getPresence().setActivity(Activity.watching("!password")); + jda.getPresence().setActivity(Activity.watching("g!password")); } private void newGuild(Guild guild) {