mirror of https://github.com/thaldrin/thaldrin.git
make the yiff useragent use name set in vars
This commit is contained in:
parent
6989537da9
commit
80574888d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue