]> git.lizzy.rs Git - furrybot.git/commitdiff
Add define exception to annoy anon5
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 17 Mar 2021 19:45:08 +0000 (20:45 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 17 Mar 2021 19:45:08 +0000 (20:45 +0100)
bot.lua

diff --git a/bot.lua b/bot.lua
index ce9b5aa7e77ba00922f5c0dfafbe152d440de9a5..cc95bb3731087bf79ed0d02144c670e997d7c49a 100644 (file)
--- a/bot.lua
+++ b/bot.lua
@@ -338,7 +338,7 @@ end
 
 function furrybot.commands.define(name, word)
        if word then
-               furrybot.json_http_request("https://api.dictionaryapi.dev/api/v1/entries/en_US/" .. word, name, function(data)
+               furrybot.json_http_request("https://api.dictionaryapi.dev/api/v1/entries/en_US/" .. word:gsub("computer", "person"), name, function(data)
                        local meaning = data.meaning
                        local selected = meaning.exclamation or meaning.noun or meaning.verb or meaning.adjective or meaning["transitive verb"] or meaning.adverb or meaning["relative adverb"]
                        if not selected then