https://github.com/itsdevdom/screeps-bot
My personal screeps bot, written from scratch. Use at your own risk!
https://github.com/itsdevdom/screeps-bot
javascript screeps screeps-ai screeps-bot screeps-game
Last synced: about 1 month ago
JSON representation
My personal screeps bot, written from scratch. Use at your own risk!
- Host: GitHub
- URL: https://github.com/itsdevdom/screeps-bot
- Owner: itsdevdom
- Created: 2022-04-25T20:27:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-11T20:04:53.000Z (almost 4 years ago)
- Last Synced: 2025-07-09T00:51:55.369Z (9 months ago)
- Topics: javascript, screeps, screeps-ai, screeps-bot, screeps-game
- Language: TypeScript
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# screeps-bot
My personal screeps bot, written from scratch. Use at your own risk!
## Build and Deploy
The project setup is simple: A bit of TypeScript here (type safety yay!), an automatic deploy script there - otherwise following the
standard Screeps setup. So keep in mind that files within `src` must remain in a flat hierarchy, no subfolders allowed. The deployment
destination path must be defined in the environment in order to prevent leaks of usernames or private server IPs / ports.
### Setup
Pre-requisites:
- The project is cloned to your local computer
- Node.js (incl. npm) is installed and available (tested with `14.x`)
First, install all dependencies by running:
```bash
npm run ci
```
Then, create a `.env` file within the project root folder (will be ignored by Git) and add the following contents (replacing variable values):
```bash
SCREEPS_DEPLOY_PATH=
```
For example:
```bash
SCREEPS_DEPLOY_PATH=C:/Users//AppData/Local/Screeps/scripts//screeps-bot
```
### Build
Build the code (simple TypeScript -> JavaScript transpilation) by running:
```bash
npm run build
```
> Note: Build destination is the `dist` folder
### Deploy
Push the built code over to Screeps by running:
```bash
npm run deploy
```
Within Screeps, the new code will be active immediately. Make sure that "screeps-bot" is selected as the branch.