vauth commited on
Commit
9ea3b5b
·
verified ·
1 Parent(s): 1c28b7f

UPDATE init

Browse files
Files changed (3) hide show
  1. Dockerfile +9 -0
  2. config.py +25 -0
  3. index.html +35 -0
Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM catub/catuserbot:latest
2
+ RUN git clone https://github.com/TgCatUB/catuserbot
3
+ RUN chmod -R 777 catuserbot
4
+ RUN pip install sqlalchemy-cockroachdb
5
+ WORKDIR catuserbot
6
+ ENV TZ=Asia/Kolkata
7
+ COPY . .
8
+ ENV PATH="/home/userbot/bin:$PATH"
9
+ CMD ["sh", "-c", "python3 -m http.server 7860 & python3 -m userbot"]
config.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sample_config import Config
2
+
3
+
4
+ class Development(Config):
5
+ # get this values from the my.telegram.org
6
+ APP_ID = 6
7
+ API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
8
+ # the name to display in your alive message
9
+ ALIVE_NAME = "Your value"
10
+ # create any PostgreSQL database (i recommend to use cockroachdb) and paste that link here
11
+ DB_URI = "Your value"
12
+ # After cloning the repo and installing requirements do python3 stringsetup.py an fill that value with this
13
+ STRING_SESSION = "Your value"
14
+ # create a new bot in @botfather and fill the following vales with bottoken
15
+ TG_BOT_TOKEN = "Your value"
16
+ # create a private group and a rose bot to it and type /id and paste that id here (replace that -100 with that group id)
17
+ PRIVATE_GROUP_BOT_API_ID = -100
18
+ # command handler
19
+ COMMAND_HAND_LER = "."
20
+ # command hanler for sudo
21
+ SUDO_COMMAND_HAND_LER = "."
22
+ # External plugins repo
23
+ EXTERNAL_REPO = "https://github.com/TgCatUB/CatPlugins"
24
+ # if you need badcat plugins set "True"
25
+ BADCAT = "False"
index.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CatUserbot Status</title>
7
+ <style>
8
+ body {
9
+ background-color: #121212;
10
+ color: #ffffff;
11
+ font-family: Arial, sans-serif;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ height: 100vh;
16
+ margin: 0;
17
+ text-align: center;
18
+ }
19
+ .container {
20
+ border: 2px solid #c22929;
21
+ padding: 40px;
22
+ border-radius: 10px;
23
+ background-color: #1e1e1e;
24
+ }
25
+ h1 {
26
+ color: #c22929;
27
+ }
28
+ </style>
29
+ </head>
30
+ <body>
31
+ <div class="container">
32
+ <h1>😻 Catuserbot is Running!</h1>
33
+ </div>
34
+ </body>
35
+ </html>