This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request | |
from twilio.twiml.messaging_response import MessagingResponse | |
from random import randint | |
app = Flask(__name__) | |
@app.route('/sms', methods=['POST']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Generic function declarations | |
local Barker = { | |
barks = function(self) | |
print(self.name .. ' barks') | |
end | |
} | |
local Killer = { | |
kills = function(self, target) | |
print(self.name .. ' kills '.. target .. ' with its '.. self.weapon) |