gdgpisa / gdgpisausermanager Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Thanks for reporting this issue with our bot ๐โค๏ธ
Please fill-in the details and remove the useless sections
When you add a user:
2018-09-24 10:59:47,216 - ERROR - An uncaught error was raised while processing the update
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update
handler.handle_update(update, self)
File "/usr/local/lib/python2.7/dist-packages/telegram/ext/messagehandler.py", line 169, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "gdgpisausermanager.py", line 44, in welcome
threading.Timer(Config.WAITING_TIMEOUT, timer,
AttributeError: type object 'Config' has no attribute 'WAITING_TIMEOUT'
We should create a "test group" and try what happens if multiple users join at the same moment or with a few seconds of delay
This is the log:
set 18 13:50:26 raspberrypi python[12935]: bot.kickChatMember(chatid, userid, until_date=25) set 18 13:50:26 raspberrypi python[12935]: File "/usr/local/lib/python2.7/dist-packages/telegram/bot.py", line 60, in decorator set 18 13:50:26 raspberrypi python[12935]: result = func(self, *args, **kwargs) set 18 13:50:26 raspberrypi python[12935]: File "/usr/local/lib/python2.7/dist-packages/telegram/bot.py", line 1428, in kick_chat_member set 18 13:50:26 raspberrypi python[12935]: result = self._request.post(url, data, timeout=timeout) set 18 13:50:26 raspberrypi python[12935]: File "/usr/local/lib/python2.7/dist-packages/telegram/utils/request.py", line 278, in post set 18 13:50:26 raspberrypi python[12935]: **urlopen_kwargs) set 18 13:50:26 raspberrypi python[12935]: File "/usr/local/lib/python2.7/dist-packages/telegram/utils/request.py", line 215, in _request_wrapper set 18 13:50:26 raspberrypi python[12935]: raise BadRequest(message) set 18 13:50:26 raspberrypi python[12935]: BadRequest:
Peer_id_invalid``
If the users the first time doesen't complete the registration, when someone add the member again and he/she complete the registration everything should be fine
when the user complete the registration the second time, he/she get banned
I suppose that depends on the last commit
Running the bot it should load config.py, that search for the .telegram.token file. If the file does not exist it should suggest where to put it.
ModuleNotFoundError: No module named 'config'
. Installing as a module it copy only the gdgpisausermanager.py file, so config.py is unreachable.
Just follow the README.md instruction to install the bot.
When a user clicks the InlineKeyboardButton, the bot will automatically accept new users. We need to check if the user who clicks the button is the same users who joined
To be discussed.
A CI that builds the docker image and publishes it on the Docker Hub can be useful.
Since the project is open source, can be implemented for free using Travis-CI, that is a simple but powerful tool that anyone should understand.
There are some tools that simulate the Telegram server and sends programmatically fake requests to our bot.
Should be tested:
Related: Stress Test #3
Simply there are no translation. I think is not so urgent but it could be useful for other groups.
Thanks for reporting this issue with our bot ๐โค๏ธ
Please fill-in the details and remove the useless sections
We should create an appropriate output log
The bot prints everything inside the Terminal window
If possible provide a screenshot of the problem.
As the title says, we should update the README file with better infos
Warning in gdgpisausermanager.py. See https://git.io/fxJuV for details.
Adding use_context=True
as suggested seems broking the bot (at least on Docker).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.