-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (27 loc) · 728 Bytes
/
config.py
File metadata and controls
30 lines (27 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from discord import Intents
API_URL = os.getenv("API_URL", "https://csfloat.com/api/v1/listings")
API_TOKEN = os.getenv("API_TOKEN", "")
DISCORD_WEBHOOK_URL = os.getenv("DISCORD_WEBHOOK_URL", "")
DISCORD_BOT_TOKEN = os.getenv("DISCORD_BOT_TOKEN", "")
# Search parameters
search_parameters = {
"market_hash_name": "",
"rarity_name": "",
"type": "buy_now",
"min_float": "",
"max_float": "",
"rarity": "",
"paint_seed": "",
"paint_index": "",
"user_id": "",
"collection": "",
"min_price": "",
"max_price": "",
}
# Bot intents
intents = Intents.default()
intents.messages = True
intents.message_content = True
# Monitoring frequency
MONITOR_INTERVAL = 3600 # in seconds