User

Difference between revisions of "Cewbot"

(+)
 
(fix)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{bot|kanashimi}}
 +
{{seealso|w:zh:User:Cewbot/tasks|l1=Full task list in Chinese wiki}}
 +
 +
 
To create a bot at Lingua Libre using [https://github.com/kanasimi/wikiapi npm - wikiapi]:
 
To create a bot at Lingua Libre using [https://github.com/kanasimi/wikiapi npm - wikiapi]:
# Create a account at [[commons:Wikimedia Commons|Wikimedia Commons]]. The account should includes "bot".
+
# Create a account at [[commons:Wikimedia Commons|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".
 
# Login Lingua Libre with the account, and browser [[Special:BotPasswords]], create a bot password, e.g., "LinguaLibrebot@LinguaLibrebot".
# The code for login:
+
# The code for login: Please follow the code [https://github.com/kanasimi/wikibot/blob/master/wiki%20configuration.sample.js here].
<syntaxhighlight>
+
# The userland will with the prefix "User:LinguaLibrebot".
const wiki = new Wikiapi;
 
await wiki.login({
 
user_name: "LinguaLibrebot@LinguaLibrebot",
 
password: 'password',
 
API_URL: 'https://lingualibre.org/api.php'
 
});
 
</syntaxhighlight>
 

Latest revision as of 20:02, 21 August 2022

Template:Bot Template:Seealso


To create a bot at Lingua Libre using npm - wikiapi:

  1. Create a account at Wikimedia Commons. The account name should includes "bot".
  2. Login Lingua Libre with the account, and browser Special:BotPasswords, create a bot password, e.g., "LinguaLibrebot@LinguaLibrebot".
  3. The code for login: Please follow the code here.
  4. The userland will with the prefix "User:LinguaLibrebot".