Skip to content

Commit 5377fc1

Browse files
committed
Add info about working with snekbox 3.11 on bot
1 parent 63e040a commit 5377fc1

File tree

1 file changed

+8
-2
lines changed
  • pydis_site/apps/content/resources/guides/pydis-guides/contributing

1 file changed

+8
-2
lines changed

pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ urls:
8888

8989
# Snekbox
9090
snekbox_eval_api: "http://localhost:8060/eval"
91+
snekbox_311_eval_api: "http://localhost:8065/eval"
9192

9293
##### << Replace the following � characters with the channel IDs in your test server >> #####
9394
# This assumes the template was used: https://discord.new/zmHtscpYN9E3
@@ -481,10 +482,14 @@ You are now almost ready to run the Python bot. The simplest way to do so is wit
481482
In your `config.yml` file:
482483

483484
* Set `urls.site` to `"web:8000"`.
484-
* If you wish to work with snekbox set `urls.snekbox_eval_api` to `"http://snekbox:8060/eval"`.
485+
* If you wish to work with snekbox set the following:
486+
* `urls.snekbox_eval_api` to `"http://snekbox:8060/eval"`
487+
* `urls.snekbox_311_eval_api` to `"http://snekbox-311:8060/eval"`.
485488

486489
Assuming you have Docker installed **and running**, enter the cloned repo in the command line and type `docker-compose up`.
487490

491+
If working with snekbox you can run `docker-compose --profile 3.10 up` to also start up a 3.10 snekbox container, in addition to the default 3.11 container!
492+
488493
After pulling the images and building the containers, your bot will start. Enter your server and type `!help` (or whatever prefix you chose instead of `!`).
489494

490495
Your bot is now running, but this method makes debugging with an IDE a fairly involved process. For additional running methods, continue reading the following sections.
@@ -494,12 +499,13 @@ The advantage of this method is that you can run the bot's code in your preferre
494499

495500
* Append the following line to your `.env` file: `BOT_API_KEY=badbot13m0n8f570f942013fc818f234916ca531`.
496501
* In your `config.yml` file, set `urls.site` to `"localhost:8000"`. If you wish to keep using `web:8000`, then [COMPOSE_PROJECT_NAME](../docker/#compose-project-names) has to be set.
497-
* To work with snekbox, set `urls.snekbox_eval_api` to `"http://localhost:8060/eval"`
502+
* To work with snekbox, set `urls.snekbox_eval_api` to `"http://localhost:8060/eval"` and `urls.snekbox_311_eval_api` to `"http://localhost:8065/eval"`
498503

499504
You will need to start the services separately, but if you got the previous section with Docker working, that's pretty simple:
500505

501506
* `docker-compose up web` to start the site container. This is required.
502507
* `docker-compose up snekbox` to start the snekbox container. You only need this if you're planning on working on the snekbox cog.
508+
* `docker-compose up snekbox-311` to start the snekbox 3.11 container. You only need this if you're planning on working on the snekbox cog.
503509
* `docker-compose up redis` to start the Redis container. You only need this if you're not using fakeredis. For more info refer to [Working with Redis](#optional-working-with-redis).
504510

505511
You can start several services together: `docker-compose up web snekbox redis`.

0 commit comments

Comments
 (0)