You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2022. It is now read-only.
<imgalt="Reported bugs from pcworms_bot project"src="https://img.shields.io/badge/dynamic/json?url=http://de1.hashbang.sh:7191/json&label=Bugs+found&query=$.Telegram_RSS_Bot.bugs_count&color=red">
<imgalt="Reported bugs from pcworms_bot project"src="https://img.shields.io/badge/dynamic/json?url=http://de1.hashbang.sh:7191/json&label=Bugs+found&query=$.Telegram_RSS_Bot.bugs_count&color=red">
Then configure server. this repository may update `config-example.conf`, but `user-config.conf` is ignored and it is for users
91
+
```bash
92
+
cp config-example.conf user-config.conf
94
93
```
95
-
The program will save the configurations for reuse in the database, so you do not need to reconfigure the server for the next run, unless you need to change them.
94
+
Edit `user-config.conf` with a text editor, if you want to know about Bug-Reporter [see Bug reporter below](#bug-reporter--)
96
95
96
+
Then run server
97
+
```bash
98
+
python3 main.py
99
+
```
97
100
Identify yourself as owner to bot. you can start a chat with your bot and then use this:
98
101
```
99
102
/start {bot-token}
100
103
```
101
104
102
105
# Reset databases
103
-
If your about to reset database you can use `-r {database}` to reset `chats`, `config` or `all` databases.
106
+
If your about to reset database you can use `-r {database}` to reset `chats`, `data` or `all` databases.
104
107
105
-
**:warning: This action can not be undone**
108
+
<b>:warning:<fontcolor="orange">This action can not be undone</font></b>
106
109
107
-
# Bug Reporter
108
-
I added a module that reports exceptions or any custom message and counts them, then I can show the number of bugs through a running server and then track and fix them. The bug reporter is not enabled by default, but if you are interested you can save the bugs to a local file `bug.json`by running the server with the `-b` argument, or run the bug report http server with `-b {port number}`to see them through an http server (click on the "Bugsfound" badgeto see an example).
I wrote a module that reports exceptions or any custom message and counts them, then I can show the number of bugs of a running server and then track and fix them. The bug reporter is off by default, but if you are interested you can save the bugs to a local file `bugs.json`in offline mode, or run the bug report http server in online mode to see them through an http server (click on [ or ](http://de1.hashbang.sh:7191) badge to see an example). The default configuration of the http bug reporter is saved in `Bug-reporter.conf` but you can config server to use your own config file.
**Notice** Don't forget to install `cherrypy`before using http bug reporter. use`python3 -m pip install cherrypy`
111
114
112
115
---
113
116
Using [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) api
114
117
115
118
###### this is my first telegram bot!
116
-
this project began for [pcworms.blog.ir](http://pcworms.blog.ir) weblog, but now it is available for everyone. you can see customised version at [pcworms/PCworms_Bot](https://github.com/pcworms/PCworms_Bot)
119
+
this project began for [pcworms.blog.ir](http://pcworms.blog.ir) weblog, but now it is available for everyone. you can see customized version at [pcworms/PCworms_Bot](https://github.com/pcworms/PCworms_Bot)
0 commit comments