Skip to content

Commit 8750f4c

Browse files
committed
add link shortcut commands
1 parent 44823c6 commit 8750f4c

File tree

2 files changed

+99
-97
lines changed

2 files changed

+99
-97
lines changed

bot.py

+99
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,104 @@ async def hell(ctx: discord.ext.commands.Context, channel_alias: str):
187187
await ctx.channel.send(f"Blue has earned his freedom... for now.")
188188

189189

190+
@bot.command(name="ct", aliases=["curation"], brief="Curation tutorial.")
191+
async def curation_tutorial(ctx: discord.ext.commands.Context):
192+
l.debug(f"curation tutorial command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
193+
await ctx.channel.send("Curation tutorial:\n"
194+
"🔗 https://bluemaxima.org/flashpoint/datahub/Curation_Tutorial")
195+
196+
197+
@bot.command(name="av", aliases=["antivirus", "avg", "avast"], brief="Antivirus interference.")
198+
async def antivirus(ctx: discord.ext.commands.Context):
199+
l.debug(f"antivirus command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
200+
await ctx.channel.send("Important Flashpoint components may be detected as a virus; this is a false positive.\n"
201+
"🔗 https://bluemaxima.org/flashpoint/datahub/Troubleshooting_Antivirus_Interference")
202+
203+
204+
@bot.command(name="ws", aliases=["whitescreen", "wsod"], brief="White screen troubleshooting.")
205+
async def whitescreen(ctx: discord.ext.commands.Context):
206+
l.debug(f"whitescreen command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
207+
await ctx.channel.send("Launching games always shows a blank white screen:\n"
208+
"🔗 https://bluemaxima.org/flashpoint/datahub/Extended_FAQ#Troubleshooting")
209+
210+
211+
@bot.command(name="faq", brief="FAQ.")
212+
async def faq(ctx: discord.ext.commands.Context):
213+
l.debug(f"FAQ command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
214+
await ctx.channel.send("FAQ:\n"
215+
"🔗 https://bluemaxima.org/flashpoint/datahub/Extended_FAQ")
216+
217+
218+
@bot.command(name="not-accepted", aliases=["notaccepted", "disallowed", "blacklist", "blacklisted"], brief="Not accepted curations.")
219+
async def not_accepted(ctx: discord.ext.commands.Context):
220+
l.debug(f"not-accepted command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
221+
await ctx.channel.send("These are games/animations not allowed in Flashpoint for any reason:\n"
222+
"🔗 https://bluemaxima.org/flashpoint/datahub/Not_Accepted_Curations")
223+
224+
225+
@bot.command(name="nitrome", brief="Nitrome information.")
226+
async def nitrome(ctx: discord.ext.commands.Context):
227+
l.debug(f"nitrome command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
228+
await ctx.channel.send("Nitrome politely asked us to remove their content from the collection. "
229+
"If you're looking to play their games, do it at their website, and if Flash "
230+
"isn't an option, follow their growing HTML5-compatible catalog. "
231+
"Flashpoint does not condone harassment over Nitrome's decision.")
232+
233+
234+
@bot.command(name="meta", aliases=["curation-format", "format"], brief="Metadata file.")
235+
async def meta(ctx: discord.ext.commands.Context):
236+
l.debug(f"meta command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
237+
await ctx.channel.send("List of Metadata Fields:\n"
238+
"🔗 https://bluemaxima.org/flashpoint/datahub/Curation_Format#List_of_Metadata_Fields")
239+
240+
241+
@bot.command(name="tags", brief="Tags in Flashpoint.")
242+
async def tags(ctx: discord.ext.commands.Context):
243+
l.debug(f"tags command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
244+
await ctx.channel.send("List of Tags:\n"
245+
"🔗 https://bluemaxima.org/flashpoint/datahub/Tags")
246+
247+
248+
@bot.command(name="lang", aliases=["langs", "languages"], brief="Language codes.")
249+
async def lang(ctx: discord.ext.commands.Context):
250+
l.debug(f"lang command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
251+
await ctx.channel.send("List of Language Codes:\n"
252+
"🔗 https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes")
253+
254+
255+
@bot.command(name="masterlist", aliases=["ml", "master-list", "list", "games", "animations", "gamelist", "game-list", "search"],
256+
brief="Link or search master list")
257+
async def master_list(ctx: discord.ext.commands.Context, search_query: Optional[str] = None):
258+
if search_query is None:
259+
l.debug(f"masterlist command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
260+
await ctx.channel.send("Browse Flashpoint Catalog:\n"
261+
"🔗 https://nul.sh/misc/flashpoint/")
262+
else:
263+
l.debug(f"masterlist with query command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
264+
await ctx.channel.send("Direct search not implemented yet.\n"
265+
"🔗 https://nul.sh/misc/flashpoint/")
266+
267+
268+
@bot.command(name="downloads", aliases=["dl"], brief="Where to download Flashpoint.")
269+
async def downloads(ctx: discord.ext.commands.Context):
270+
l.debug(f"downloads command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
271+
await ctx.channel.send("Download Flashpoint from here:\n"
272+
"🔗 https://bluemaxima.org/flashpoint/downloads/")
273+
274+
275+
@bot.command(name="platforms", aliases=["plugins"], brief="Supported platforms in Flashpoint.")
276+
async def platforms(ctx: discord.ext.commands.Context):
277+
l.debug(f"platforms command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
278+
await ctx.channel.send("Supported Platforms:\n"
279+
"🔗 https://bluemaxima.org/flashpoint/platforms/")
280+
281+
282+
@bot.command(name="github", aliases=["gh"], brief="Flashpoint Project GitHub.")
283+
async def github(ctx: discord.ext.commands.Context):
284+
l.debug(f"github command invoked from {ctx.author.id} in channel {ctx.channel.id} - {ctx.message.jump_url}")
285+
await ctx.channel.send("Flashpoint Project on GitHub:\n"
286+
"🔗 https://github.com/FlashpointProject/")
287+
288+
190289
l.info(f"starting the bot...")
191290
bot.run(TOKEN)

todo-commands.txt

-97
Original file line numberDiff line numberDiff line change
@@ -7,83 +7,6 @@ Commands that let you add/delete commands. Allow it for mods and up, so that we
77

88
---
99

10-
ct
11-
tutorial
12-
13-
<https://bluemaxima.org/flashpoint/datahub/Curation_Tutorial>
14-
15-
---
16-
17-
av
18-
antivirus
19-
avg
20-
avast
21-
22-
<https://bluemaxima.org/flashpoint/datahub/Troubleshooting_Antivirus_Interference>
23-
24-
---
25-
26-
wsod
27-
whitescreen
28-
ws
29-
30-
<https://bluemaxima.org/flashpoint/datahub/Extended_FAQ#Troubleshooting>
31-
32-
---
33-
34-
faq
35-
36-
<https://bluemaxima.org/flashpoint/datahub/Extended_FAQ>
37-
38-
---
39-
40-
banned
41-
blacklist
42-
notallowed
43-
notaccepted
44-
45-
<https://bluemaxima.org/flashpoint/datahub/Not_Accepted_Curations>
46-
47-
---
48-
49-
nitrome
50-
51-
Nitrome asked us to remove their games. Why? We do not know the specific reason, but it's their right to do so. However, they will be emulating their collection on their site in HTML5 using the Poki emulator, so you will have to go there to play them. Please do not harass them.
52-
53-
---
54-
55-
format
56-
meta
57-
58-
<https://bluemaxima.org/flashpoint/datahub/Curation_Format#List_of_Metadata_Fields>
59-
60-
---
61-
62-
tags
63-
64-
<https://bluemaxima.org/flashpoint/datahub/Tags>
65-
66-
---
67-
68-
lang
69-
langs
70-
languages
71-
72-
<https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>
73-
74-
---
75-
76-
ml
77-
masterlist
78-
list
79-
games
80-
animations
81-
anims
82-
83-
<https://nul.sh/misc/flashpoint/>
84-
85-
---
86-
8710
ml <title>
8811
masterlist <title>
8912
list <title>
@@ -96,23 +19,3 @@ select * from game where title like %<title>% limit 1;
9619

9720
Tomy would be happy:
9821
https://discordapp.com/channels/432708847304704010/432708847304704013/666497367117266964
99-
100-
---
101-
102-
downloads
103-
dl
104-
105-
<https://bluemaxima.org/flashpoint/downloads/>
106-
107-
---
108-
109-
platforms
110-
plugins
111-
112-
<https://bluemaxima.org/flashpoint/platforms/>
113-
114-
---
115-
116-
github
117-
118-
<https://github.com/FlashpointProject/>

0 commit comments

Comments
 (0)