diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-17 12:18:41 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-17 12:18:41 -0600 |
commit | f0eb74dcfa687c6816dfb0a95f7cc38cfdad6cf1 (patch) | |
tree | 7178a58ab58b5ab250671d23de4ad92a902e461c | |
parent | 4035f68fb6bed64b89005b42f4ee527d9df1911a (diff) |
fact checking boar now uses advanced ai algorithms
-rw-r--r-- | app.js | 4 | ||||
-rw-r--r-- | command_impls.js | 3 | ||||
-rw-r--r-- | commands.js | 8 |
3 files changed, 3 insertions, 12 deletions
@@ -52,9 +52,7 @@ function handle_application_command(state, data, channel_id) { return fomx(state); case "factcheck": - if (options && options.length >= 1) - return factcheck(state, options[0].value); - else return factcheck(state, true); + return factcheck(state); default: console.error(`unknown command: ${name}`); diff --git a/command_impls.js b/command_impls.js index 5875e66..b95e472 100644 --- a/command_impls.js +++ b/command_impls.js @@ -75,7 +75,8 @@ export function fomx(state) { }); } -export function factcheck(state, truth) { +export function factcheck(state) { + const truth = Math.random() > 0.5 ? true : false; if (truth) return send(state, { content: "https://jjanzen.ca/images/true-boar.png", diff --git a/commands.js b/commands.js index ef7291a..a261d7b 100644 --- a/commands.js +++ b/commands.js @@ -42,14 +42,6 @@ const commands = [ name: "factcheck", description: "check a fact", type: 1, - options: [ - { - type: 5, - name: "true", - description: "truth value of fact check", - required: false, - }, - ], integration_types: [0], contexts: [0], }, |