User
Difference between revisions of "Cewbot"
(+) |
(fix) |
||
Line 11: | Line 11: | ||
await wiki.login({ | await wiki.login({ | ||
user_name: "LinguaLibrebot@LinguaLibrebot", | user_name: "LinguaLibrebot@LinguaLibrebot", | ||
− | password: 'password', | + | password: 'password given by Lingua Libre', |
API_URL: 'https://lingualibre.org/api.php' | API_URL: 'https://lingualibre.org/api.php' | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# The userland will with the prefix "User:LinguaLibrebot". | # The userland will with the prefix "User:LinguaLibrebot". |
Revision as of 09:28, 27 April 2021
To create a bot at Lingua Libre using npm - wikiapi:
- Create a account at Wikimedia Commons. The account name should includes "bot".
- Login Lingua Libre with the account, and browser Special:BotPasswords, create a bot password, e.g., "LinguaLibrebot@LinguaLibrebot".
- The code for login:
const wiki = new Wikiapi;
await wiki.login({
user_name: "LinguaLibrebot@LinguaLibrebot",
password: 'password given by Lingua Libre',
API_URL: 'https://lingualibre.org/api.php'
});
- The userland will with the prefix "User:LinguaLibrebot".