Add config.sample.php and update README
This commit is contained in:
@@ -13,9 +13,10 @@ A PHP-based Telegram tip bot for the Salvium (Monero fork) cryptocurrency.
|
||||
|
||||
## Installation
|
||||
1. Clone the repo
|
||||
2. Update `config.php` with your RPC, DB, and Telegram Bot credentials
|
||||
3. Run `salvium_tipbot.php` as a Telegram webhook listener
|
||||
4. Schedule `salvium_tipbot_monitor.php` using `cron` for periodic checks
|
||||
2. Copy `config.sample.php` to `config.php` and fill in your credentials
|
||||
3. Update `config.php` with your RPC, DB, and Telegram Bot credentials
|
||||
4. Run `salvium_tipbot.php` as a Telegram webhook listener
|
||||
5. Schedule `salvium_tipbot_monitor.php` using `cron` for periodic checks
|
||||
|
||||
## Requirements
|
||||
- PHP 8.1+
|
||||
|
||||
15
config.sample.php
Normal file
15
config.sample.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
return [
|
||||
'SALVIUM_RPC_HOST' => '127.0.0.1',
|
||||
'SALVIUM_RPC_PORT' => 28881,
|
||||
'SALVIUM_RPC_USERNAME' => 'rpcuser',
|
||||
'SALVIUM_RPC_PASSWORD' => 'rpcpassword',
|
||||
|
||||
'DB_HOST' => 'localhost',
|
||||
'DB_NAME' => 'salvium_tipbot',
|
||||
'DB_USER' => 'your_db_user',
|
||||
'DB_PASS' => 'your_db_pass',
|
||||
'DB_CHARSET' => 'utf8mb4',
|
||||
|
||||
'TELEGRAM_BOT_TOKEN' => 'YOUR_TELEGRAM_BOT_TOKEN_HERE',
|
||||
];
|
||||
Reference in New Issue
Block a user