コード例 #1
0
ファイル: rsvp.py プロジェクト: ClearMind/heliosphere
 def call(self, chat, author, event_id):
     player = db.find_player_by_telegram_id(author)
     if player is None:
         telegram.send(chat, "Introduce yourself by providing your psn id: /r register <psn-id>")
         return
     db.leave_event(player, event_id)
     telegram.send(chat, "Left")
コード例 #2
0
ファイル: rsvp.py プロジェクト: ClearMind/heliosphere
 def call(self, chat, author, event_id):
     player = db.find_player_by_telegram_id(author)
     if player is None:
         telegram.send(
             chat,
             "Introduce yourself by providing your psn id: /r register <psn-id>"
         )
         return
     db.leave_event(player, event_id)
     telegram.send(chat, "Left")
コード例 #3
0
 def delete(self, event_id):
     player = db.find_player(users.get_current_user().user_id())
     db.leave_event(player, event_id)
     events_for(self, player)
コード例 #4
0
ファイル: web.py プロジェクト: ClearMind/heliosphere
 def delete(self, event_id):
     player = db.find_player(users.get_current_user().user_id())
     db.leave_event(player, event_id)
     events_for(self, player)