Add lambda related fikes
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
from app import fact_service, groupme
|
||||
from util import constants
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def post_fact_to_group():
|
||||
# Get Groupme api token to post with
|
||||
groupme_client = groupme.get_client()
|
||||
|
||||
# Get specific group from groupme
|
||||
fact_bot = groupme.get_bot(constants.BOT_NAME)
|
||||
|
||||
# Get Random Fact
|
||||
fact = fact_service.get_random_fact()
|
||||
|
||||
# Post fact in Group
|
||||
# groupme_client.
|
||||
message = fact_bot.post(text=fact)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
post_fact_to_group()
|
||||
|
||||
Reference in New Issue
Block a user