Old School Bot is a Discord Bot based on Old School RuneScape
For more information on the bot: https://www.oldschool.gg/oldschoolbot
Old School Bot is not affiliated with or endorsed by Jagex. Play Old School RS for free at https://oldschool.runescape.com
Old School Bot uses oldschooljs
(also made by me), for most of the OSRS related features like: simulating killing monsters, simulating clues, fetching the hiscores, checking worlds, etc. It's completely open-source and free to use.
https://github.com/gc/oldschooljs
To report a bug, click here.
To suggest a new feature, click here
Anyone is free to create PR's with improvements and additions to Old School Bot.
Please lint your code with the projects' ESLint config.
Contributors are listed in this file, and given a Contributor role in the support server. If you have more questions, there are lots of helpful Contributors in the #developers
channel on the Discord server.
To run the bot, you need the following things first: Git, NodeJS v18+, Postgres, Python and a discord bot account.
Privileged Gateway Intents > Server Members Intent
enabled.Application ID
into the URL. https://discord.com/api/oauth2/authorize?client_id=<INSERT APPLICATION ID HERE>&permissions=2198754295617&scope=applications.commands%20bot
git clone https://github.com/oldschoolgg/oldschoolbot.git
cd oldschoolbot
npm install --global yarn
cp src/config.example.ts src/config.ts
config.ts
file:
botToken
BotID
OWNER_IDS
and ADMIN_IDS
. You can get your Discord ID by opening Settings, selecting My Account, selecting the three dots next to your user name and selecting Copy ID. You may need to enable Developer Mode in Advanced Settings to be given this option.SupportServer
. You can get this by right clicking the logo of the server and selecting Copy ID.DEV_SERVER_ID
cp .env.example .env
.env
file:
DATABASE_URL
and ROBOCHIMP_DATABASE_URL
using the format postgresql://USER:PASSWORD@HOST:PORT/DATABASE
CLIENT_ID
yarn
then yarn install
npx prisma generate
to generate the Prisma client files and load the DSN from #6.npx prisma db push
to create the tables on the database referenced in .envnpx prisma generate --schema=./prisma/robochimp.prisma
to generate the Prisma client files and load the DSN from #6 for the robochimp
database.npx prisma db push --schema=./prisma/robochimp.prisma
to create the tables on the database referenced in .env for the robochimp
database.yarn build
- then run yarn start
. In the future, you can type only yarn start
to start the bot.If you have errors or issues, you can ask us for help in the #developer channel in the discord server.
In addition to being able your develop on your own server as we have done above, there is a shared dev server which can be joined here: https://discord.gg/Cup2gwUGwr
You can also ask Magna to invite your Bot with your invite link above if you so wish.
Self hosting is not supported.