aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md4
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md7
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md4
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/vps-services.md2
-rw-r--r--pydis_site/settings.py2
-rw-r--r--pydis_site/templates/base/footer.html2
-rw-r--r--pydis_site/templates/events/pages/code-jams/_index.html4
-rw-r--r--pydis_site/templates/home/index.html2
8 files changed, 13 insertions, 14 deletions
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
index a414bc20..9fc0f882 100644
--- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
+++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
@@ -57,11 +57,11 @@ See [here](../creating-bot-account) for help with setting up a bot account. Once
#### Privileged Intents
It is necessary to explicitly request that your Discord bot receives certain gateway events.
-The Python bot requires the `Server Member Intent` to function.
+The Python bot requires `Server Member Intent` and `Message Content Intent` to function.
In order to enable it, visit the [Developer Portal](https://discord.com/developers/applications/) (from where you copied your bot's login token) and scroll down to the `Privileged Gateway Intents` section.
The `Presence Intent` is not necessary and can be left disabled.
-If your bot fails to start with a `PrivilegedIntentsRequired` exception, this indicates that the required intent was not enabled.
+If your bot fails to start with a `PrivilegedIntentsRequired` exception, this indicates that the required intents were not enabled.
---
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md
index 43d1c8f5..e9555575 100644
--- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md
+++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md
@@ -18,8 +18,11 @@ icon: fab fa-discord
4. Change your bot's `Public Bot` setting off so only you can invite it, save, and then get your **Bot Token** with the `Copy` button.
> **Note:** **DO NOT** post your bot token anywhere public, or it can and will be compromised.
5. Save your **Bot Token** somewhere safe to use in the project settings later.
-6. In the `OAuth2` tab, grab the **Client ID**.
-7. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server.
+6. Scroll down to the `Privileged Gateway Intents` section and enable required intents.
+> For Sir Lancebot, you need to enable `Server Member Intent`. For Python Bot, you need to enable `Server Member Intent` and `Message Content Intent`.
+> Failure to do so will result in a `PrivilegedIntentsRequired` exception when you start the bot.
+7. In the `OAuth2` tab, grab the **Client ID**.
+8. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server.
```plaintext
https://discordapp.com/api/oauth2/authorize?client_id=<CLIENT_ID_HERE>&permissions=8&scope=bot
```
diff --git a/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md b/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md
index ca97462b..b1385016 100644
--- a/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md
+++ b/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md
@@ -11,11 +11,11 @@ If you plan on using embed responses for your bot you should know the limits of
- A **field name/title** is limited to **256 character** and the **value of the field** is limited to **1024 characters**
- Embed **footer** is limited to **2048 characters**
- Embed **author name** is limited to **256 characters**
-- The **total of characters** allowed in an embed is **6000**
+- The **total characters** of all embeds in a single message is limited to **6000**
+- A message is limited to **10 embeds**
Now if you need to get over this limit (for example for a help command), you would need to use pagination.
There are several ways to do that:
-- A library called **[disputils](https://pypi.org/project/disputils)**
- An experimental library made by the discord.py developer called **[discord-ext-menus](https://github.com/Rapptz/discord-ext-menus)**
- Make your own setup using **[wait_for()](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.wait_for)** and wait for a reaction to be added
diff --git a/pydis_site/apps/content/resources/guides/python-guides/vps-services.md b/pydis_site/apps/content/resources/guides/python-guides/vps-services.md
index df20395b..9a4a28c9 100644
--- a/pydis_site/apps/content/resources/guides/python-guides/vps-services.md
+++ b/pydis_site/apps/content/resources/guides/python-guides/vps-services.md
@@ -9,7 +9,7 @@ toc: 2
If you need to run your bot 24/7 (with no downtime), you should consider using a virtual private server (VPS). Here is a list of VPS services that are sufficient for running Discord bots.
* Europe
- * [netcup](https://www.netcup.eu/?ref=177518)
+ * [netcup](https://www.netcup.com/?ref=177518)
* Germany & Austria data centres.
* Great affiliate program.
* [Yandex Cloud](https://cloud.yandex.ru/)
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index dcb37b54..e5ae7cbd 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -56,7 +56,7 @@ if not STATIC_BUILD:
send_default_pii=True,
release=f"site@{GIT_SHA}",
profiles_sample_rate=1.0,
- enable_tracing=True,
+ traces_sample_rate=1.0,
enable_db_query_source=True,
db_query_source_threshold_ms=100, # Queries slower that 100ms will include the source in the event
)
diff --git a/pydis_site/templates/base/footer.html b/pydis_site/templates/base/footer.html
index eacc7429..d5f2b067 100644
--- a/pydis_site/templates/base/footer.html
+++ b/pydis_site/templates/base/footer.html
@@ -1,7 +1,7 @@
<footer class="footer has-background-grey-darker">
<div class="content has-text-centered has-text-grey-lighter">
<p>
- Powered by <a href="https://www.linode.com/?r=3bc18ce876ff43ea31f201b91e8e119c9753f085"><span id="linode-logo">Linode</span></a> and <a href="https://www.netcup.eu/?ref=177518"><span id="netcup-logo">netcup</span></a><br>Built with <a href="https://www.djangoproject.com/"><span id="django-logo">django</span></a> and <a href="https://bulma.io"><span id="bulma-logo">Bulma</span></a> <br/> &copy; {% now "Y" %} <span id="pydis-text">Python Discord</span>
+ Powered by <a href="https://www.linode.com/?r=3bc18ce876ff43ea31f201b91e8e119c9753f085"><span id="linode-logo">Linode</span></a> and <a href="https://www.netcup.com/?ref=177518"><span id="netcup-logo">netcup</span></a><br>Built with <a href="https://www.djangoproject.com/"><span id="django-logo">django</span></a> and <a href="https://bulma.io"><span id="bulma-logo">Bulma</span></a> <br/> &copy; {% now "Y" %} <span id="pydis-text">Python Discord</span>
</p>
</div>
</footer>
diff --git a/pydis_site/templates/events/pages/code-jams/_index.html b/pydis_site/templates/events/pages/code-jams/_index.html
index 953e7382..bdf7d43d 100644
--- a/pydis_site/templates/events/pages/code-jams/_index.html
+++ b/pydis_site/templates/events/pages/code-jams/_index.html
@@ -8,10 +8,6 @@
{% block title %}Code Jams{% endblock %}
{% block event_content %}
- <div class="notification is-success">
- The <strong>2024 Summer Code Jam</strong> is currently underway and you can still enter!
- <strong>The qualifier is open until July 10</strong>; check out the details <a href="{% url "events:page" path="code-jams/11" %}">here</a>.
- </div>
<p>
If you've been around the server for a while, or you just happened to join at the right time,
you may have heard of something known as a Code Jam.
diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html
index c7d14fd6..8ebf186e 100644
--- a/pydis_site/templates/home/index.html
+++ b/pydis_site/templates/home/index.html
@@ -188,7 +188,7 @@
Sponsors
</h1>
<div class="columns is-vcentered">
- <a href="https://www.netcup.eu/?ref=177518" class="column is-one-third">
+ <a href="https://www.netcup.com/?ref=177518" class="column is-one-third">
<img class="light-image" src="{% static "images/sponsors/netcup.png" %}" alt="netcup" loading="lazy"/>
<img class="dark-image" src="{% static "images/sponsors_dark/netcup.png" %}" alt="netcup" loading="lazy"/>
</a>