Skip to content

Commit

Permalink
feat: add regenie chat bot (#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc authored Oct 19, 2023
1 parent 8eac9b2 commit 30cadd0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web-www/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Head, Html, Main, NextScript } from 'next/document';
import Script from 'next/script';

import { augmentDocumentWithEmotionCache } from './_app';

Expand All @@ -21,6 +22,7 @@ const Document = () => {
<body>
<Main />
<NextScript />
<script src="/regenie.js" async />
</body>
</Html>
);
Expand Down
17 changes: 17 additions & 0 deletions web-www/public/regenie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(function (w, d, s, o, f, js, fjs) {
w["botsonic_widget"] = o;
w[o] =
w[o] ||
function () {
(w[o].q = w[o].q || []).push(arguments);
};
(js = d.createElement(s)), (fjs = d.getElementsByTagName(s)[0]);
js.id = o;
js.src = f;
js.async = 1;
fjs.parentNode.insertBefore(js, fjs);
})(window, document, "script", "Botsonic", "https://widget.writesonic.com/CDN/botsonic.min.js");
Botsonic("init", {
serviceBaseUrl: "https://api.botsonic.ai",
token: "8bd9038d-7fe5-4751-a34c-96ab17d49d3f",
});

0 comments on commit 30cadd0

Please sign in to comment.