Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjpjp committed Nov 11, 2019
0 parents commit 79cc066
Show file tree
Hide file tree
Showing 44 changed files with 13,016 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Folder view configuration files
.DS_Store
Desktop.ini

# Thumbnail cache files
._*
Thumbs.db

# Files that might appear on external disks
.Spotlight-V100
.Trashes

# Application specific files
venv
node_modules

# Private environments
.env
ToDo.private
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"runtimeExecutable": null,
"env": {
"DEBUG": "flint"
},
"args": [
"--exit",
"-u",
"bdd",
"--timeout",
"90000",
"--colors",
"${workspaceFolder}/test"
],
"internalConsoleOptions": "openOnSessionStart"
}
]
}
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
**4.6.x Update**

* `bot.store()`, `bot.recall()`, and `bot.forget` of memory storage module has
been refactored to return resolved/rejected promises. This means that
`bot.recall()` will no longer return a null value for a non-existent key and
will return a promise instead of a value for a existing key. This is to comply
with requirements for other storage modules that are not synchronous and to
make the memory storage module interchangeable with these.
* redis storage module modified so that is interchangeable with the new memory
storage module. This module will be refactored soon to decrease times between
synchronizations rather than syncing the local memory store with redis
periodically. However, the function calls to this module will not change so
code based on this will be safe when this module is refactored.
* The previous redis storage module still exists as redis_old, but is
deprecated / unsupported. If using the redis module, consider migrating to
updated redis storage module. This module will be removed in Flint v5.

**Breaking Changes in 4.6.x**

* See update above. `bot.store()`, `bot.recall()`, and `bot.forget` functions have been adjusted. Redis Storage Module refactored. Mem Storage Module refactored.

**4.5.x Update**

* Removed some error handling that would cause flint to crash when Spark API
would respond with a 504 error due to API issues.
* Fixed unhandled rejections when despawn happens and bot mem-store is empty.
* Updated handling on of "next" in returned webhook function.
* Changed room being tagged as a "Team" if bot is not member of team.
* Fixed typo in audit process (#15 via @pevandenburie)

**4.4.x Update**

* `bot.isDirectTo` property added. This is set to the email of the other
conversant in rooms of type 'direct'.
* `trigger.raw` property added to `flint.hears` trigger callback object. This is
the raw message without any processing to remove multiple spaces, CR/LF, or
leading/trailing spaces.

**4.3.x Update**

* `bot.add()` and `bot.remove()` now return an array of successfully
added / removed room membership emails rather than the bot object itself.
* Debug error messages for archived team rooms suppressed.

**4.2.x Update**

* Persistent Storage for `bot.store()`, `bot.recall()`, and `bot.forget()`
through new modular storage functionality.
* Added in-memory storage module (default unless storage module is specified)
* Added Redis storage module
* Added boolean property flint.isUserAccount
* Added method `flint.storageDriver()` to define storage backend
* The `flint.hears()` method now can have a weight specified. This allows for
overlapping and default actions.
* Auto detection of Bot accounts
* If Bot account is detected, the behavior of the `trigger.args` property inside
the `flint.hears()` method performs additional parsing.

**Breaking Changes in 4.2.x**

* `flint.machine` boolean property renamed to `flint.isBotAccount`
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016-2019

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 79cc066

Please sign in to comment.