Skip to content

Commit c41443e

Browse files
committed
TenorGifSearch: Restore tenor command
1 parent f335c82 commit c41443e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/plugins/tenorGifSearch/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,21 @@ export default definePlugin({
170170
match: /(?<=search\((\i),(\i)\)\{)null==\i\.getResults\(\1,\2\)&&/,
171171
replace: "return $self.tenorIntegrationSearch($1,$2);null==void 0&&"
172172
}
173+
},
174+
// Add back tenor command
175+
{
176+
find: 'commandId:"-16"',
177+
replacement: {
178+
match: /commandId:"-16"}/,
179+
replace: '$&,TENOR:{type:"GIF",command:"tenor",title:"Tenor",commandId:"-9"}'
180+
}
181+
},
182+
{
183+
find: "#{intl::COMMAND_GIPHY_DESCRIPTION}",
184+
replacement: {
185+
match: /(\i)===\i\.\i\.GIF\.title/,
186+
replace: '$&||$1==="Tenor"'
187+
}
173188
}
174189
],
175190

0 commit comments

Comments
 (0)