You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### << Replace the following � characters with the channel IDs in your test server >> #####
93
94
# 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
481
482
In your `config.yml` file:
482
483
483
484
* 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"`.
485
488
486
489
Assuming you have Docker installed **and running**, enter the cloned repo in the command line and type `docker-compose up`.
487
490
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
+
488
493
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 `!`).
489
494
490
495
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
494
499
495
500
* Append the following line to your `.env` file: `BOT_API_KEY=badbot13m0n8f570f942013fc818f234916ca531`.
496
501
* 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"`
498
503
499
504
You will need to start the services separately, but if you got the previous section with Docker working, that's pretty simple:
500
505
501
506
*`docker-compose up web` to start the site container. This is required.
502
507
*`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.
503
509
*`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).
504
510
505
511
You can start several services together: `docker-compose up web snekbox redis`.
0 commit comments