make the yiff useragent use name set in vars

This commit is contained in:
Lio Young 2021-04-10 23:26:35 +02:00
parent 6989537da9
commit 80574888d1
No known key found for this signature in database
GPG Key ID: 789795A11879E169
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import Yiff from 'yiff'
import config from '../../config'
import pkg from '../../package.json'
let yiff = new Yiff({
useragent: `Thaldrin/v${pkg.version} (t8.pm/bot)`,
useragent: `${config.variables.name}/v${pkg.version} (t8.pm/bot)`,
apikey: {
sheri: config.apis.sheri,
yiffrest: config.apis.yiffrest