Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] setJar

Thedark1337 edited this page Feb 11, 2017 · 2 revisions

setJar(jar)

(5.0.0)

Sets the tough-cookie jar to a custom instance that user specifies


Parameters

jar

tough-cookie

The jar to store cookies in.


Example

const tough = require('tough-cookie');
const jar = new tough.CookieJar(undefined, {
    looseMode: true
 });

bot.setJar(jar);
Clone this wiki locally