Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Bot from Baris@dmbtechdev #3

Merged
merged 5 commits into from
Dec 17, 2024
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
36 changes: 36 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Environment Configuration
ENVIRONMENT=development # or production

# Server Configuration
SERVER_HOST=127.0.0.1
SERVER_PORT=7878
WEBHOOK_PATH=/webhook

# Rate Limiting Configuration
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_SECONDS=3600

# Retry Configuration
RETRY_MAX_ATTEMPTS=3
RETRY_INITIAL_DELAY_MS=1000
RETRY_MAX_DELAY_MS=5000

# Timeout Configuration (in seconds)
TIMEOUT_CONNECT_SECONDS=10
TIMEOUT_READ_SECONDS=30
TIMEOUT_WRITE_SECONDS=30

# GitHub Configuration
GITHUB_TOKEN=ghp_your_github_personal_access_token_here
REPO_OWNER=repository_owner_or_organization
REPO_NAME=repository_name

# X (Twitter) Configuration
# Get these from the X Developer Portal (https://developer.twitter.com/en/portal/dashboard)
X_API_KEY=your_x_api_key_here
X_API_SECRET=your_x_api_secret_here
X_ACCESS_TOKEN=your_x_access_token_here
X_ACCESS_SECRET=your_x_access_token_secret_here

# Logging Configuration
LOG_LEVEL=debug # error, warn, info, debug, or trace
19 changes: 18 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Environment files
.env
.env.*
!.env.example

# Rust
/target
**/*.rs.bk
Cargo.lock

# JetBrains
.idea/
Expand All @@ -11,8 +17,19 @@
# VSCode
.vscode/

# macOS
# IDE
*.swp
*.swo

# Logs
*.log
npm-debug.log*

# OS
.DS_Store
Thumbs.db

# macOS
.AppleDouble
.LSOverride

Expand Down
Loading
Loading