A bot which enables you to create and send challenges to your discord server fast and easily. You can set it up with your accound for now as GeoGuessr does not have an external public API.
To create a new challenge use slash command /challenge
. It has the following arguments:
- mapid - map id of the map you want to use. Default: A diverse world
- time - time limit per round. Default: 30 seconds
- move - is moving allowed. Default: True
- pan - is panning allowed. Default: True
- zoom - is zooming allowed. Default: True
You can use the slash command /next
to create a new challenge with the same options as the last created challenge.
You can use the "Clone" button on a challenge to create a new challenge with the same options as the selected challenge
By default the bot checks for new results for a few minutes after the invitation has been sent. If you want to update the results for a given challenge you can use the "Refresh" button.
Currently the bot is not hosted anywhere as you need to provide your own GeoGuessr cookie for it to function correctly. To set it up, create a new bot from the discord developer portal, and clone this repository.
You need to setup a .env file:
NODE_ENV=development
PERMISSIONS=68672
CLIENT_ID=<client ID>
BOT_TOKEN=<bot token>
GUILD_ID=<id of your server>
COOKIE=<your cookie extracted from the header request cookie to any geoguessr /api call>
Install the dependencies:
npm install
To start the bot run:
npm run build
npm run start
If you want to run the development version with Typescript watchers:
- install nodemon globally:
npm i -g nodemon
- run the dev command
npm run dev