Add sample api_key.php and change file_get_contents with require

This commit is contained in:
Ceda EI 2018-03-31 14:59:19 +05:30
parent 3dbc02dc73
commit 59e0d23ba5
2 changed files with 2 additions and 1 deletions

1
api_key.php.sample Normal file
View File

@ -0,0 +1 @@
<?php return 'xxxxxxxxxx:xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx'; ?>

View File

@ -1,6 +1,6 @@
<?php
$bot_name = "quadnite_bot";
$bot_api = file_get_contents('api_key');
$bot_api = require('api_key.php');
// Checks whether the given command is the same as the entered command
function check_command($command) {