Skip to content

A bot that generates challenges which can be shared with your channel

Notifications You must be signed in to change notification settings

bmutafov/geoguessr-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoGuessr Discord Bot

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.

Features

- Create challenges and send them to a channel

image

- Track results challenges

image

How to use

Creating new challenge

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

Redo last challenge

You can use the slash command /next to create a new challenge with the same options as the last created challenge.

Clone challenge

You can use the "Clone" button on a challenge to create a new challenge with the same options as the selected challenge

Refresh results

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.

Setting it up

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