we do a little hackering on the 4channel

This commit is contained in:
2025-07-06 03:38:07 +00:00
parent 7a60a672d4
commit 9a7cd118b3
2 changed files with 7 additions and 6 deletions

View File

@ -29,8 +29,7 @@ const envConfig = {
};
const ollamaConfig: OllamaConfigOptions = {
temperature: 0.6,
num_predict: 750,
temperature: 1.2,
};
const getNotifications = async () => {
@ -155,9 +154,10 @@ const generateOllamaRequest = async (
if (
striptags(notification.status.content).includes("!prompt") &&
!notification.status.account.bot && // sanity check, sort of
notification.type === "mention"
notification.type === "mention" &&
notification.status.visibility === "public" // for safety, let's only respond to public messages
) {
if (whitelistOnly && !(await isFromWhitelistedDomain(notification))) {
if (whitelistOnly && !isFromWhitelistedDomain(notification)) {
return;
}
if (await alreadyRespondedTo(notification)) {

5
types.d.ts vendored
View File

@ -61,8 +61,9 @@ export interface Status {
created_at: string | Date; // when the post was created
id: string; // ID of the reply itself
in_reply_to_account_id: string; // account ID of the reply
in_reply_to_id?: string; // status that the user has replied to
mentions?: Mention[]; // array of mentions
in_reply_to_id: string; // status that the user has replied to
mentions: Mention[]; // array of mentions
visibility: "private" | "public" | "unlisted";
}
export interface Mention {