bobbygrace / bravobot Goto Github PK
View Code? Open in Web Editor NEWA Slack bot for giving bravos, little pictorial congratulations.
License: MIT License
A Slack bot for giving bravos, little pictorial congratulations.
License: MIT License
Hi. I noticed a stacktrace was dumped when I sent bravos without a message. The bravos were removed from my balance and I'm unsure if the bravee received said bravos.
Maybe replace line 100 with this:
if text.split(' ').length > 1
msg = text.split(' ')[1...].join(' ')
else
msg = 'Bravo!'
Trace:
{
"stackTrace": [
[
"/var/task/yoon.py",
536,
"handleYoonCommand",
"result = handleMultiGiftText(fromUser, words, dynamo)"
],
[
"/var/task/yoon.py",
478,
"handleMultiGiftText",
"result = gift(fromUser, user[Username], amount, messageText, dynamodb)"
],
[
"/var/task/yoon.py",
314,
"gift",
"addGiftRecord(fromUser, toUser, amount, message, dynamodb)"
],
[
"/var/task/yoon.py",
73,
"addGiftRecord",
"GiftId: str(uuid.uuid1())"
],
[
"/var/runtime/boto3/resources/factory.py",
520,
"do_action",
"response = action(self, *args, **kwargs)"
],
[
"/var/runtime/boto3/resources/action.py",
83,
"__call__",
"response = getattr(parent.meta.client, operation_name)(**params)"
],
[
"/var/runtime/botocore/client.py",
314,
"_api_call",
"return self._make_api_call(operation_name, kwargs)"
],
[
"/var/runtime/botocore/client.py",
612,
"_make_api_call",
"raise error_class(parsed_response, operation_name)"
]
],
"errorType": "ClientError",
"errorMessage": "An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: An AttributeValue may not contain an empty string"
}
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.