|
162 | 162 | "ctr": "3ds",
|
163 | 163 | "spr": "3dsxl",
|
164 | 164 | "ktr": "new3ds",
|
| 165 | + "red": "new3dsxl", |
165 | 166 | "jan": "new2dsxl",
|
166 | 167 | }
|
167 | 168 |
|
168 | 169 | boards = {
|
169 | 170 | "dslite": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-dsl.png",
|
170 | 171 | "dsixl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-dsixl.png",
|
171 |
| - "o3ds": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-o3ds.jpg", |
172 |
| - "o3dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-o3dsxl.png", |
173 |
| - "n3ds": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n3ds.png", |
174 |
| - "n3dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n3dsxl.png", |
175 |
| - "n2dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n2dsxl.png", |
| 172 | + "3ds": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-o3ds.jpg", |
| 173 | + "3dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-o3dsxl.png", |
| 174 | + "2ds": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-o2ds.png", |
| 175 | + "new3ds": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n3ds.png", |
| 176 | + "new3dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n3dsxl.png", |
| 177 | + "new2dsxl": "https://hacksguidewiki.sfo3.digitaloceanspaces.com/hardwarewiki/Board-n2dsxl.png", |
| 178 | +} |
| 179 | + |
| 180 | +# Used for board command title |
| 181 | +title = { |
| 182 | + "dslite": "DS Lite", |
| 183 | + "dsixl": "DSI XL", |
| 184 | + "3ds": "3DS (2011)", |
| 185 | + "3dsxl": "3DS XL (2011)", |
| 186 | + "2ds": "2DS", |
| 187 | + "new3ds": "\"New\" 3DS (2015)", |
| 188 | + "new3dsxl": "\"New\" 3DS XL (2015)", |
| 189 | + "new2dsxl": "\"New\" 2DS XL" |
176 | 190 | }
|
177 | 191 |
|
178 | 192 |
|
@@ -218,15 +232,24 @@ async def board(self, ctx: KurisuContext, console: str = ""):
|
218 | 232 |
|
219 | 233 | if console in boards.keys():
|
220 | 234 | embed.set_image(url=boards[console])
|
221 |
| - elif console in alias.keys() and alias[console] in boards.keys(): |
222 |
| - embed.set_image(url=boards[alias[console]]) |
| 235 | + elif console in alias.keys(): |
| 236 | + # Verify alias has a board (shared with all other commands) |
| 237 | + if alias[console] in boards.keys(): |
| 238 | + embed.set_image(url=boards[alias[console]]) |
| 239 | + else: |
| 240 | + embed.description = f'{ctx.author.mention}, Board options are `' + ', '.join(boards) + "`" |
| 241 | + embed.color = discord.Color.red() |
| 242 | + await ctx.send(embed=embed, delete_after=10) |
223 | 243 | else:
|
224 | 244 | embed.description = f'{ctx.author.mention}, Board options are `' + ', '.join(boards) + "`"
|
225 | 245 | embed.color = discord.Color.red()
|
226 | 246 | await ctx.send(embed=embed, delete_after=10)
|
227 | 247 | return
|
228 | 248 |
|
229 |
| - embed.title = f"Board Diagram: {console.capitalize()}" |
| 249 | + if console in alias.keys(): |
| 250 | + embed.title = f"System: {title[alias[console]]}" |
| 251 | + else: |
| 252 | + embed.title = f"System: {title[console]}" |
230 | 253 | await ctx.send(embed=embed)
|
231 | 254 |
|
232 | 255 |
|
|
0 commit comments