-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
383 additions
and
385 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE "queue" ( | ||
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"text" text NOT NULL, | ||
"channel" text NOT NULL, | ||
"created_at" integer NOT NULL, | ||
"leased_at" integer NOT NULL | ||
); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
use dotenvy::var; | ||
use rust_slackbot_llm::run; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let slack_oauth_token = var("SLACK_OAUTH_TOKEN") | ||
.map_err(|_| "Expected SLACK_OAUTH_TOKEN in the environment or .env file")?; | ||
let slack_signing_secret = var("SLACK_SIGNING_SECRET") | ||
.map_err(|_| "Expected SLACK_SIGNING_SECRET in the environment or .env file")?; | ||
let database_url = var("DATABASE_URL").unwrap_or("sqlite://db/db.sqlite3".to_owned()); | ||
run(database_url, slack_oauth_token, slack_signing_secret).await | ||
run().await | ||
} |
Oops, something went wrong.