From f7b57f26fd2482e9983826f9bfcaf182ad642f32 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Sat, 25 Jul 2020 08:55:48 +0000 Subject: [PATCH] [config] Add example file for guidance In this commit, I also added comments in the root .gitignore file. Signed-off-by: Andrei Jiroh Eugenio Halili --- .gitignore | 2 ++ spam/config.sample.py | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 spam/config.sample.py diff --git a/.gitignore b/.gitignore index ba9d6f5..b8d42f5 100644 --- a/.gitignore +++ b/.gitignore @@ -123,6 +123,8 @@ dmypy.json # Pyre type checker .pyre/ + +# Pyrogram stuff + Userbot config *.session spam/config.py *.session-journal diff --git a/spam/config.sample.py b/spam/config.sample.py new file mode 100644 index 0000000..b50769d --- /dev/null +++ b/spam/config.sample.py @@ -0,0 +1,18 @@ +# This file is an template for configuring your SpamProtectionAgent Userbot. +# Duplicate this file and save as config.py. + +# To run the userbot, make this variable defined. DO NOT LEAVE IT BLANK! +ENABLE = "" + +# Need to debug stuff? Enable this one to show debug logs which might contains +# senstive information. +LOGGER = "" + +# Command prefix for userbot commands. +Command = "!" + +# ID and Hash for first user. +# Get one from https://my.telegram.org/apps +user1_api_id = "" +user1_api_hash = "" +user1_session_string = "" \ No newline at end of file