igolaizola / bulkai

AI image generation in bulk automatically
MIT License
189 stars 40 forks source link

Can only provide discord token to automatically generate session.yaml #44

Open xiongqiangcs opened 1 year ago

xiongqiangcs commented 1 year ago

Use Discord Token Login to Avoid Entering Username and Password?

Similar to chrome extension discord token login https://chrome.google.com/webstore/detail/discord-token-login/moncfdpjldlalmbimjjpbdenngeonnie

igolaizola commented 1 year ago

You can launch a custom javascript to login with the token.

Launch bulkai create-session command and when the login window appears open developer tools (F12) and paste this on the console:

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login('paste-your-token-here')
xiongqiangcs commented 1 year ago

You can launch a custom javascript to login with the token.

Launch bulkai create-session command and when the login window appears open developer tools (F12) and paste this on the console:

function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login('paste-your-token-here')

Can I execute the command bulkai create-session --token xxx to generate session.yaml without opening chrome? This allows to execute bulkai create-session --token xxx directly on linux/unix