Discord

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Communication
Meetup
Babel
Distribution list
ComCom
Mailing lists
Overview
Administration
Standardization
List info template
Wikimedia IRC
Channels listing
#wikidata-admin
#wikimedia-admin
#wikipedia-en-admins
Channel operators
#wikimedia-admin
#wikipedia-en-admins
#wikipedia and #wikipedia-en
Instructions
Guidelines
#wikipedia
Group Contacts
Noticeboard & Log
Cloaks
Bots
FAQ
Stalkwords
Quotes (en)
archives
Quotes (fr)
Other chat networks
Telegram
Discord
Matrix.org
Steam

Discord is a chat app. There are some Wikimedia-related Discord servers. Wikimedia community server is used for discussions about English Wikimedia projects, Commons, and Meta. Other servers are primarily divided by language and can be used to discuss Wikimedia projects in those languages.

Project servers[edit]

There are some Wikimedia-related Discord servers.

Wikidata may have a more up-to-date list: Project:Discord (Q47303831)

WikiBot[edit]

Wikimedia-related Discord servers can use a bot called WikiBot (or DiscordWikiBot). Its main purpose is to turn [[wiki link]] (with interwiki support) and {{template}} syntax into real links to pages in Wikimedia projects. The bot will edit or delete its message if the message author changes or deletes wiki links from their message (for the latest 500 messages in its memory). It can also stream recent changes instantly from Wikimedia projects and notify every hour about new changes in translatewiki.net messages for different languages.

WikiBot is written in C# and its source code is available on GitHub under MIT licence. It is maintained by stjn. If you have a server for Wikimedia project, you can request WikiBot for it in English Discord server (ping @stjn in your request). Otherwise, you could run it yourself by following the installation guide on GitHub.

WikiBot can be localised on translatewiki.net.

Configuration[edit]

WikiBot can be configured per server. To configure the bot, server members have to have ‘Manage server’ permission on Discord. Members with that permission will have access to the following commands:

  • !guildLang en: change the language to English (or others with valid ISO 639-2 code). This will fetch the localisation if it exists (see here) or use one of the fallback languages.
  • !guildWiki <https://en.wikipedia.org/wiki/$1>: change the default link on a server to English Wikipedia
  • !guildDomain en.wikipedia.org: change target domain for recent changes streams in the server to English Wikipedia (works only for Wikimedia projects).
  • !guildTW #channel en: add a translatewiki.net stream for messages in English language in specified channel.
  • !channelWiki <https://www.wikidata.org/wiki/$1>: change the default link on a channel to Wikidata

More documentation of these commands can be provided by typing !help guildLang (or other command names). Configuration can be reverted back to default by typing !guildLang - (for !guildTW it’s !guildTW #channel -).

Recent changes streams[edit]

WikiBot supports recent changes streams by using EventStreams. Configuration of this feature is straightforward: server moderators can open a new stream by typing !openStream, edit its parameters by typing !editStream and close a stream in the specified channel by typing !closeStream. All streams have the following parameters:

  • --title – page title (can not contain two -)
  • --namespace – namespace number
  • --bot (true, false [default]) – include bot edits
  • --diff-length – minimum diff length
  • --in-comment – search a string in comment
  • --minor (true [default], false) – include minor edits
  • --patrolled (only, none, any [default]) – filter by patrolling status
  • --type (new, edit, any [default]) – type of edit

For commands to work, either a page title or a namespace number are required. An example of running a command:
!openStream #channel --namespace 8 --minor false --bot true
!closeStream #channel --namespace 8

Server owners have to be aware of Discord’s rate limits (5 actions in 5 seconds on a server) when using the recent changes streams. If you have any streams enabled on your server, you can check if the connection to EventStreams is active by typing !status.

Usage[edit]

WikiBot works on following Discord servers:

WikiAuthBot[edit]

Wikimedia-related Discord servers can also use a bot called WikiAuthBot to authenticate members' Discord accounts to those on any Wikimedia Foundation project via OAuth. Once authenticated, the member is authenticated for all servers the bot is in. They can then be easily identified to their accounts and have a role automatically assigned to help restrict non-authenticated users. The bot also supports Miraheze and Fandom Discord servers.

WikiAuthBot is written in Python. It is maintained by IVORK. If you have a server you wish to add the bot to, you do so via this link.

WikiAuthBot currently supports Bosnian, Breton, Bulgarian, Croatian, Dutch, English, French, German, Indonesian, Korean, Malay, Polish, Russian, Serbian, Thai and Ukrainian. For additional languages, contact IVORK#0001 on Discord or through his talk page.

Configuration[edit]

The following commands are available to all users. In the English Discord, all except .auth are restricted to the #bot-commands channel.

  • .auth: Receive the link to authenticate your Discord account to Wikimedia.
  • .whois IVORK or DiscordUserID: List information on edits and groups for an authenticated user's Wikimedia account.
  • .invite: Get DM'd the link to invite WikiAuthBot to your own server.
  • .help: Show the commands available as well as set channels & roles.

WikiAuthBot can be configured per server. To configure the bot, server members have to have ‘Manage server’ permission on Discord. Members with that permission will have access to the following commands:

  • .setlang en: change the language using the xx.wikipedia.org code. For full languages available, just type .setlang
  • .setachan #channel-tag: set a channel to posts messages when each user authenticates on your server via command or on joining. Append none to clear.
  • .setwchan #channel-tag: set a channel to post messages welcoming new users to the server and prompting to authenticate. Append none to clear or dm to have messages sent via to the user directly if possible.
  • .setrole Role Name or RoleID: set the role authenticated users have added to them, upon using this command, the bot will go through and check & assign the role to those already authenticated. Append none to clear.
  • .setblock Y or N: disable blocked users' ability to authenticate on your server. Off by default.
  • .settype W or M or F: declare the authentication type to be used between Wikimedia, Miraheze or Fandom. Support for multiple or all currently not supported. Defaults to Wikimedia.

Usage[edit]

WikiAuthBot works on the following Wikimedia Discord servers:

Partnership[edit]

A partnership could be established between different Wikipedia Discord servers. A partnership is established when the owners of the partnered Wikipedia Discord servers exchanged moderatorship. Below is a list of partnership conducted between different Wikipedia Discord servers.

  • Partnership between Malaysian and Indonesian Wikipedia Discord server established on 20 December 2020.

See also[edit]