[PR #54] [CLOSED] Provide dotenv examples #81

Closed
opened 2026-02-15 23:16:34 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/python-client-sdk/pull/54
Author: @cswimr
Created: 6/18/2023
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • 5f535ac Update basic.py
  • 0638015 dotenv example added
  • b33a548 Update basic.py
  • 4d7a98a Update commands.py
  • cd60277 add python-dotenv to pylint
  • f247b4e Update pyright.yml
  • ebf173f disabled reportGeneralTypeIssues on line 21 to prevent pylint error
  • ebde3e6 trying again with pylint
  • bff4673 this repository uses pyright, not pylint - mb
  • 45163f7 misunderstood pyright docs

📊 Changes

4 files changed (+35 additions, -2 deletions)

View changed files

📝 .github/workflows/pyright.yml (+2 -2)
📝 examples/basic.py (+2 -0)
📝 examples/commands.py (+2 -0)
examples/dotenv.py (+29 -0)

📄 Description

Please make sure to check the following tasks before opening and submitting a PR

  • [] I understand and have followed the contribution guide
  • [] I have tested my changes locally and they are working as intended
  • [ ] These changes do not have any notable side effects on other Revolt projects

From me on the Revolt.py server:

so, I've been looking at the examples for revolt.py bots - going off my discord knowledge, it's best practice for bot tokens to be secure and not be stored in source code, which typically means using the dotenv module to load a .env file containing the bot's token.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stoatchat/python-client-sdk/pull/54 **Author:** [@cswimr](https://github.com/cswimr) **Created:** 6/18/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`5f535ac`](https://github.com/stoatchat/python-client-sdk/commit/5f535acb663aabf8821c2879fb1a0b630ddc52d9) Update basic.py - [`0638015`](https://github.com/stoatchat/python-client-sdk/commit/06380157b2b16c038a291872c071101d13019cff) dotenv example added - [`b33a548`](https://github.com/stoatchat/python-client-sdk/commit/b33a548ab4176fc0b0e747a2b91bc0eb702be3fe) Update basic.py - [`4d7a98a`](https://github.com/stoatchat/python-client-sdk/commit/4d7a98afe4169f74bb4f564847f03aa142ea3993) Update commands.py - [`cd60277`](https://github.com/stoatchat/python-client-sdk/commit/cd602770fd465e0d419cc9914831f53041887fc2) add `python-dotenv` to pylint - [`f247b4e`](https://github.com/stoatchat/python-client-sdk/commit/f247b4ed76bc3219ec72aae79f2dec91323f57a7) Update pyright.yml - [`ebf173f`](https://github.com/stoatchat/python-client-sdk/commit/ebf173f044d154f38ab7a58561c136a183b5b026) disabled `reportGeneralTypeIssues` on line 21 to prevent pylint error - [`ebde3e6`](https://github.com/stoatchat/python-client-sdk/commit/ebde3e649ee05672e72e0f5aabbc0b7fede9846f) trying again with pylint - [`bff4673`](https://github.com/stoatchat/python-client-sdk/commit/bff46732a67b359294d0479d0dd87d5bbb1d8098) this repository uses pyright, not pylint - mb - [`45163f7`](https://github.com/stoatchat/python-client-sdk/commit/45163f705b868982aa8b98bd162dbb5dceadc6f8) misunderstood pyright docs ### 📊 Changes **4 files changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pyright.yml` (+2 -2) 📝 `examples/basic.py` (+2 -0) 📝 `examples/commands.py` (+2 -0) ➕ `examples/dotenv.py` (+29 -0) </details> ### 📄 Description ## Please make sure to check the following tasks before opening and submitting a PR * [✅] I understand and have followed the [contribution guide](https://github.com/revoltchat/revolt/discussions/282) * [✅] I have tested my changes locally and they are working as intended * [✅ ] These changes do not have any notable side effects on other Revolt projects From me on the [Revolt.py server](https://app.revolt.chat/server/01FDD3BH2G3D5S37A6RRBANQNX/channel/01FDD3BH2GFGVSNWTZHTZ26G46/01H37PP6D4FPG3YKNXJBM05EKP): > so, I've been looking at the examples for revolt.py bots - going off my discord knowledge, it's best practice for bot tokens to be secure and not be stored in source code, which typically means using the ``dotenv`` module to load a `.env` file containing the bot's token. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 23:16:34 -05:00
yindo closed this issue 2026-02-15 23:16:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#81