-
-
Notifications
You must be signed in to change notification settings - Fork 5
Bot Syntax
When calling the MountainProjectBot, there are some helpful things to know about syntax.
The basics: To call the MountainProjectBot, the very basics is to use the format !MountainProject {search query}
. For instance: !MountainProject Send me on my Way
or !MountainProject Exit 38
.
Search query notes: The search query is case-insensitive and "space/symbol-insensitve" (it doesn't matter how many spaces or non-word characters - eg punctuation - you put in the search query).
Keyword notes: The keyword !MountainProject
also has some flexibility. It is case-insensitive and it also does not matter if you put a space between the words or not (ie !Mountain Project
is still valid)
Locations: If you want to specify a location, you can use a comma (eg !MountainProject West Ridge, Prusik Peak
) or you can use one of the following words: on/at/of/in (eg !MountainProject West Ridge of Prusik Peak
). The bot also doublechecks to see if the word is supposed to be there (eg !MountainProject Send me on my way
won't confuse the bot into looking for a place called "Send me" at "my way"). You can also specify a location using the -location
operator (see below)
Sometimes when you're calling the Mountain Project Bot, you want a very specific result. I've added some operators to the bot so you can guide the search or modify the result how you expect it to be.
Here is what is currently supported (more are on the way):
(All of these are case-insensitive)
-
-area
: insists that the result will be an area. If only routes were found, then the bot will say that it didn't find anything -
-route
: similar to above, insists that the result will be a route. If only areas were found, then the bot will say that it didn't find anything -
-location:{location name}
(eg!MountainProject Royale with Cheese -location:Niagara Glen
): requires that the bot to return only matches in that specific location. This is particularly useful when there could be multiple routes/areas with the same name (especially if you know there's a more popular one out there) -
-grade:{grade system}
(eg!MountainProject Send me on my Way -grade:uiaa
): converts the displayed grade into the requested system. The allowed systems are any of the ones listed on Mountain Project: https://www.mountainproject.com/international-climbing-grades (accepted words: yds, usa, us, french, ewbanks, australia, nz, uiaa, southafrica, za, british, uk, hueco, fontainebleau, & font - all case-insensitive of course)