Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.github
__pycache__/
*.py[cod]
*.db
*.sqlite3
.env
.venv/
venv/
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
DISCORD_BOT_TOKEN=your_discord_bot_token
NOTIFICATION_CHANNEL=123456789012345678

# Backward-compatible sequential format
CHANNEL_1=123456789012345678
CHANNEL_2=234567890123456789

# Optional alternative to CHANNEL_X
# MONITORED_CHANNEL_IDS=123456789012345678,234567890123456789

RICH_PRESENCE=Katchau!
ACTIVITY=listening
BOT_LOCALE=en_US
SHOW_LOG=false
MENTION_EVERYONE_ON_EMPTY_CHANNEL=true
DATABASE_PATH=bot_database.db
8 changes: 0 additions & 8 deletions .env.exemple

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Validate Python syntax
run: python -m py_compile bot.py

- name: Validate locale JSON
run: |
python -m json.tool locales/en_US.json > /dev/null
python -m json.tool locales/pt_BR.json > /dev/null

- name: Smoke test imports
run: python -c "import bot, discord; print(discord.__version__)"

docker:
runs-on: ubuntu-latest
needs: validate
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
push: false
load: false
tags: everyone-should-know:ci
cache-from: type=gha
cache-to: type=gha,mode=max
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/pr-release.yml

This file was deleted.

103 changes: 0 additions & 103 deletions .github/workflows/pr-snapshot.yml

This file was deleted.

Loading
Loading