ガイド · Discord Bot
Bot のトークンを守る
コードに書かない、.env、漏れたらすぐ Reset。
The token is the bot's password. Anyone who has it can send messages as the bot and damage your Discord server.
1. Keep it out of code
| Language | Read .env |
|---|---|
| Python | from dotenv import load_dotenv; load_dotenv() → os.getenv("TOKEN") |
| Node.js | require("dotenv").config() → process.env.TOKEN |
Keep .env only in panel Files.
2. Keep it off GitHub
Create .gitignore at the repository root:
.env
node_modules/
__pycache__/
venv/
If already uploaded, deleting it leaves it in history. Reset it immediately using step 3.
3. If leaked (immediately)
- Developer Portal → your app → Bot → Reset Token.
- Save the new token in
.env→ panel Restart. - The old token stops working immediately.
Discord may detect and reset tokens in public repositories. If login suddenly fails, get a new token.
4. Do not share
- Hide tokens in code and screenshots when asking questions.
- Do not hand over a token to someone offering to fix your bot.
- Do not include tokens in SJNoDE support requests.
5. Panel account
The panel uses your store password. Use a password you do not use on other sites.
すべてのガイド Discord Bot プラン お問い合わせ
提携 봇 제작 외주 이어드림 커스텀 봇 · 컴포넌트 V2 · 웹 · 프로그램 · 로고 · 배너 · UI/UX Discord で問い合わせ