|
8 | 8 |
|
9 | 9 | public class CommandInfo {
|
10 | 10 |
|
11 |
| - private final String logo = "https://cdn-icons-png.flaticon.com/512/3593/3593455.png"; |
12 |
| - private final String[] Emojis = {"❓", "\uD83E\uDDE9", "\uD83D\uDC64", "\uD83C\uDFA4", "\uD83D\uDCDA", "\uD83C\uDFC6", "⚔️"}; |
| 11 | + private final String logo = "https://github.com/jalpp/Chesslise/blob/master/src/main/java/Images/liseanime.png?raw=true"; |
13 | 12 | private final EmbedBuilder embedBuilder;
|
14 | 13 |
|
15 | 14 | public CommandInfo() {
|
16 | 15 | this.embedBuilder = new EmbedBuilder();
|
17 | 16 | }
|
18 | 17 |
|
19 |
| - |
20 | 18 | public EmbedBuilder getPageOne() {
|
21 | 19 | this.embedBuilder.setColor(Color.blue);
|
22 |
| - this.embedBuilder.setTitle("**Commands For LISEBOT**"); |
23 |
| - this.embedBuilder.setThumbnail(this.logo); |
24 |
| - this.embedBuilder.setDescription("**" + Emojis[0] + " /help** \n to see command information for the LISEBOT" + "\n\n**" + Emojis[0] + " /suggest** \n provide feedback to developer" + "\n\n **" + Emojis[2] + " /profilecc** \n view Chess.com profiles" + "\n\n **" + Emojis[2] + " /profile ** \n to see lichess profiles for given username" + "\n\n **" + Emojis[3] + " /streamers** \n Watch current live streamers" + "\n\n [Join our Server ♟\uFE0F](https://discord.gg/uncmhknmYg)"); |
25 |
| - |
26 |
| - |
27 |
| - return this.embedBuilder; |
28 |
| - } |
29 |
| - |
30 |
| - |
31 |
| - public EmbedBuilder getPageTwo() { |
32 |
| - this.embedBuilder.setColor(Color.blue); |
33 |
| - this.embedBuilder.setTitle("**Puzzles And Tournaments**"); |
34 |
| - this.embedBuilder.setThumbnail(this.logo); |
35 |
| - this.embedBuilder.setDescription("\n\n **" + Emojis[1] + " /puzzle** \n Do Random Chess Puzzles/Daily Puzzles" + "\n\n**" + Emojis[5] + " /arena <Lichess arena URL>** \n see the standings and tournament information for given tournament link" + "\n\n **" + Emojis[1] + " /analyze**\n Analyze a position with Stockfish, check puzzle answers" + "\n\n [Join our Server ♟\uFE0F](https://discord.gg/uncmhknmYg)"); |
36 |
| - return this.embedBuilder; |
37 |
| - } |
38 |
| - |
39 |
| - |
40 |
| - public EmbedBuilder getPageThree() { |
41 |
| - this.embedBuilder.setColor(Color.blue); |
42 |
| - this.embedBuilder.setTitle("**Watch And Play Chess**"); |
| 20 | + this.embedBuilder.setTitle("**Commands For Chesslise**"); |
43 | 21 | this.embedBuilder.setThumbnail(this.logo);
|
44 |
| - this.embedBuilder.setDescription("\n\n **" + Emojis[0] + " /invite** \n invite LiSEBot to your servers" + "\n\n **" + Emojis[6] + " /play ** \n Play chess with friends/BOTS on Lichess.org" + "\n\n **" + Emojis[6] + " /community ** \n view chess community" + "\n\n **" + "\uD83D\uDCFA" + " /watch** \n watch latest Lichess game of the given user in gif!" + "\n\n **" + "\uD83D\uDCFA" + " /watchmaster** \n watch random master games" + "\n\n **" + Emojis[5] + " /broadcast** \n view current ongoing master OTB/Online tournament" |
45 |
| - + "\n\n **" + Emojis[6] + "/move ** \n play chess with Stockfish chess engine for white side [use /resetboard to start/end game]" + "\n\n **" + Emojis[6] + "/moveblack ** \n play chess with Lise chess engine for black side [use /resetboard to start/end game]**" |
46 |
| - + "\n\n **" + Emojis[6] + "/learnchess ** \n Learn basic chess rules to get started with chess**" + "\n\n [Join our Server ♟\uFE0F](https://discord.gg/uncmhknmYg)"); |
| 22 | + this.embedBuilder.setFooter("Chesslise will stay free forever, so thank you for installing the bot! Chesslise is made by @nmp, if you would like to donate to support\n" + |
| 23 | + "lise's development feel free to join support server and ping @nmp"); |
| 24 | + this.embedBuilder.setDescription(""" |
| 25 | + |
| 26 | + **/help** View command info |
| 27 | + |
| 28 | + **/learnchess** learn basic chess rules |
| 29 | + |
| 30 | + **/puzzle** solve Lichess.org/Chess.com live puzzles in Discord or post them to community |
| 31 | + |
| 32 | + **/solve** solve the chess puzzle live by entering chess notation (UCI or SAN) |
| 33 | + |
| 34 | + **/puzzlesolve** create puzzle challenge for unique chess fen |
| 35 | + |
| 36 | + **/play** play Live in with your friends on Lichess.org |
| 37 | + |
| 38 | + **/profile** view user Lichess profile from given username search |
| 39 | + |
| 40 | + **/profilecc** View user Chess.com profile from given username search |
| 41 | + |
| 42 | + **/watch** View a user's newest Lichess game in Live GIF format |
| 43 | + |
| 44 | + **/move** start a game against Stockfish Chess engine, and make a move by entering a move in chess notation (UCI or SAN |
| 45 | + |
| 46 | + **/resetboard** Reset the game against the Engine, so others can play the engine |
| 47 | + |
| 48 | + [**View ChessLise TOS/Privacy Policy**](https://github.com/jalpp/Chesslise/blob/master/tos-privacy-policy.md) |
| 49 | + [**Feature Request? Join our support server**](https://discord.gg/ez3QVsNmuy) |
| 50 | + |
| 51 | + **Version: 13.8** |
| 52 | + """); |
47 | 53 | return this.embedBuilder;
|
48 | 54 | }
|
49 | 55 |
|
@@ -138,42 +144,13 @@ public EmbedBuilder getPage12() {
|
138 | 144 |
|
139 | 145 |
|
140 | 146 |
|
141 |
| - public void sendCommunityCommand(SlashCommandInteractionEvent slashEvent) { |
142 |
| - EmbedBuilder embedBuilder = new EmbedBuilder(); |
143 |
| - embedBuilder.setThumbnail("https://static-00.iconduck.com/assets.00/lichess-icon-512x512-q0oh5bwk.png"); |
144 |
| - embedBuilder.setTitle("Best Chess Community To Learn/Play Chess"); |
145 |
| - embedBuilder.setColor(Color.blue); |
146 |
| - embedBuilder.setDescription("**lichess.org** [**Join**](https://discord.gg/lichess)" + "\n\n **Chess.com** [**Join**](https://discord.gg/chesscom)" + |
147 |
| - "\n\n **The Pawn Zone** [**Join**](https://discord.gg/6aKNP3t) \n\n **The Moon Club** [**Join**](https://discord.gg/hK8Ru57SKd)" + "\n\n [Join our Server ♟\uFE0F](https://discord.gg/uncmhknmYg)"); |
148 |
| - slashEvent.replyEmbeds(embedBuilder.build()).queue(); |
149 |
| - } |
150 |
| - |
151 |
| - |
152 |
| - public void sendServiceCommand(SlashCommandInteractionEvent slashEvent) { |
153 |
| - EmbedBuilder embedBuildertos = new EmbedBuilder(); |
154 |
| - embedBuildertos.setColor(Color.blue); |
155 |
| - embedBuildertos.setTitle("Terms Of Service And Privacy Policy"); |
156 |
| - embedBuildertos.setThumbnail("https://static-00.iconduck.com/assets.00/lichess-icon-512x512-q0oh5bwk.png"); |
157 |
| - embedBuildertos.setDescription("What is Chesslise Terms Of Service?\n" + |
158 |
| - "\n" + |
159 |
| - "User agrees that they will have to use latest updated versions of Chesslise, User also agrees that some commands may be deleted if developer does not want to maintain those commands in future. User is fully responsible for their discord server and Chesslise does not have any access to the server information/ management. User also agrees to privacy policy which states that Chesslise does not and will not store any private information \n\n What information does Chesslise store about me? What is the privacy policy?\n" + |
160 |
| - "\n" + |
161 |
| - "Chesslise Does not and will not store any private user information." + "\n\n [Join our Server ♟\uFE0F](https://discord.gg/uncmhknmYg)"); |
162 |
| - slashEvent.replyEmbeds(embedBuildertos.build()).queue(); |
163 |
| - } |
164 |
| - |
165 |
| - |
166 | 147 | public void sendInfoCommand(SlashCommandInteractionEvent slashEvent) {
|
167 |
| - slashEvent.replyEmbeds(getPageOne().build()).addActionRow(net.dv8tion.jda.api.interactions.components.buttons.Button.primary("next", "➡️"), Button.link("https://discord.gg/uncmhknmYg", "Join our server")).setEphemeral(true).queue(); |
| 148 | + slashEvent.replyEmbeds(getPageOne().build()).addActionRow(Button.link("https://discord.gg/uncmhknmYg", "Join our server")).setEphemeral(true).queue(); |
168 | 149 | }
|
169 | 150 |
|
170 | 151 | public void sendLearnCommand(SlashCommandInteractionEvent slashEvent) {
|
171 | 152 | slashEvent.replyEmbeds(getPageFour().build()).addActionRow(Button.primary("Bishop", "♝"), Button.link("https://discord.gg/uncmhknmYg", "Join our server")).setEphemeral(true).queue();
|
172 | 153 | }
|
173 | 154 |
|
174 |
| - public void sendInviteMeCommand(SlashCommandInteractionEvent slashEvent) { |
175 |
| - slashEvent.replyEmbeds(new EmbedBuilder().setTitle("Invite me").setDescription("\uD83D\uDC4B [Click here for invite me](https://discord.com/api/oauth2/authorize?client_id=930544707300393021&permissions=277025704000&scope=bot%20applications.commands) \n\n \uD83D\uDC4D [Vote me on top.gg](https://top.gg/bot/930544707300393021/vote) \n\n \uD83D\uDEE0️ \n [Join our Server](https://discord.gg/uncmhknmYg)").build()).queue(); |
176 |
| - } |
177 |
| - |
178 | 155 |
|
179 | 156 | }
|
0 commit comments