TenorGifSearch: Restore tenor command

This commit is contained in:
Nuckyz 2026-07-23 17:47:20 -03:00
parent f335c823d6
commit c41443e8cd
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -170,6 +170,21 @@ export default definePlugin({
match: /(?<=search\((\i),(\i)\)\{)null==\i\.getResults\(\1,\2\)&&/,
replace: "return $self.tenorIntegrationSearch($1,$2);null==void 0&&"
}
},
// Add back tenor command
{
find: 'commandId:"-16"',
replacement: {
match: /commandId:"-16"}/,
replace: '$&,TENOR:{type:"GIF",command:"tenor",title:"Tenor",commandId:"-9"}'
}
},
{
find: "#{intl::COMMAND_GIPHY_DESCRIPTION}",
replacement: {
match: /(\i)===\i\.\i\.GIF\.title/,
replace: '$&||$1==="Tenor"'
}
}
],