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
Every six hours Stampy posts a random question to the #general channel (unless the last question was also automatically posted this way)
We want to make Stampy flexibly deployable to other Discord servers and non-Discord platforms. In order to do that, we are currently dividing modules into a generic core and custom modules which are platform-specific.
Currently, this feature is in a generic questions.py module, so probably it would be post to move it to a separate module
The code responsible for registering this functionality is in modules/questions.py, lines 162-168
# Register `post_random_oldest_question` to be triggered every after 6 hours of no question posting@self.utils.client.eventasyncdefon_socket_event_type(event_type) ->None:
if (
self.last_posted_time<datetime.now() -self.AUTOPOST_QUESTION_INTERVAL
) andnotself.last_question_autoposted:
awaitself.post_random_oldest_question(event_type)
The text was updated successfully, but these errors were encountered:
Every six hours Stampy posts a random question to the
#general
channel (unless the last question was also automatically posted this way)We want to make Stampy flexibly deployable to other Discord servers and non-Discord platforms. In order to do that, we are currently dividing modules into a generic core and custom modules which are platform-specific.
Currently, this feature is in a generic
questions.py
module, so probably it would be post to move it to a separate moduleThe code responsible for registering this functionality is in
modules/questions.py
, lines 162-168The text was updated successfully, but these errors were encountered: