Short: Discord client for MUI (bot or account) Author: renaud.schweingruber@protonmail.com (Renaud Schweingruber) Uploader: renaud schweingruber protonmail com (Renaud Schweingruber) Type: comm/net Version: 0.3.1 Requires: MUI 3.8, AmiSSL 5, TCP/IP stack, codesets.library, NList, NListtree, NFloattext, NBalance, BetterString, HotkeyString, NBitmap Architecture: m68k-amigaos >= 3.0 Distribution: Aminet AmiScord 0.3.1 - a native Discord client for AmigaOS 3 and MUI =============================================================== AmiScord connects an Amiga to Discord, the chat service. It talks to Discord's own servers through their official Gateway (WebSocket) and REST interfaces, over TLS with AmiSSL, and shows everything in one MUI window laid out like Discord's own client: a column of servers, the channels, the messages and the member list. It logs in either as a Discord bot that you make yourself, or with your own Discord account (at your own risk: read "With your own account" below before you choose it). This is a beta: it is used every day on its author's Amiga, but it has been tested on that machine only. Reports are very welcome. Contents -------- 1. Features 2. Requirements 3. Installation 4. Logging in: a bot or your own account 5. As a bot 6. With your own account 7. Using AmiScord 8. Themes 9. ARexx 10. Files and settings 11. Not done yet 12. Reporting bugs 13. History 14. Credits and licences 1. Features ----------- - Servers, categories, channels, messages and members in one window, as in Discord's own client; unread channels in bold, mentions counted, closed categories remembered - Discord's formatting (bold, italic, code, quotes, spoilers), emoji and the servers' own emoji, avatars, role colours - Pictures, animated GIFs, a picture viewer, link previews, embeds - Send files (or drop an icon on the window) and download them - Replies, reactions, editing, deleting, pinned messages, message links - Completion of @members, #channels and :emoji:, an emoji picker - Mentions with a sound and Herald pop-up cards - Private messages, read marks, "New messages" - With your own account: your servers, your private conversations, your read marks shared with your other devices, the member list - Four colour themes (Workbench 1.3 in its own four colours), and your own; names in role colours kept readable on every background - Compressed connection (about six times less data), requests paced as Discord's own app paces them, automatic reconnection - ARexx port AMISCORD.1 2. Requirements --------------- - AmigaOS 3.x and a 68020 or better. A fast CPU is recommended: a big server sends a lot of data at login. - MUI 3.8 or newer, and these MUI classes: NList.mcc, NListview.mcc, NListtree.mcc, NFloattext.mcc, NBalance.mcc, BetterString.mcc, HotkeyString.mcc, NBitmap.mcc. - AmiSSL 5 (developed with AmiSSL 5.27). - A TCP/IP stack (bsdsocket.library 4 or newer: Roadshow, AmiTCP, lwIP...). - codesets.library (accents and other characters). - An RTG screen (cybergraphics.library) for animated GIFs, the emoji picker and screenshots. Tested on a true-colour Workbench; palette screens are untested. - Optional: openurl.library (links open in your browser), sound.datatype (mention sound), Herald (pop-up notifications). Tested only on an Apollo Vampire V4 (68080) with AmigaOS 3.9, MUI 3.8, AmiSSL 5.27 and a true-colour Workbench. 3. Installation --------------- Copy the AmiScord drawer where you like, for example to Work:Comms/. Keep its contents together: AmiScord looks for them next to itself. AmiScord the program emoji/ the emoji pictures (1900 files) and the picker's data; without them emoji show as :name: text Sounds/ the mention sound Themes/ extra colour themes Start AmiScord from its icon or from a Shell (it brings its own stack). 4. Logging in: a bot or your own account ---------------------------------------- At its first start AmiScord asks how it should log in: "Bot token" As a bot you make yourself. Safe: this is the way Discord allows other programs to connect. The bot sees only the servers it is invited to. See section 5. "My account" With your own Discord account: your servers, your private messages and your read marks, as in Discord's own app. Discord does NOT allow this: see section 6. The choice is kept for the next starts (ENVARC:AmiScord/Login, BOT or USER). To change it, use Settings > "Switch to my account..." or "Switch to the bot...": AmiScord asks you to confirm, keeps the new choice and quits; its next start logs in the new way (asking for the bot's token, or for your e-mail and password, if it has none yet). Switching keeps both the bot's token and the account's session, so switching back does not ask for them again. From ARexx: LOGIN BOT or LOGIN USER. 5. As a bot ----------- Making a bot is free and takes a few minutes, in a web browser on any computer: 1. Go to https://discord.com/developers/applications and log in with your Discord account. 2. Press "New Application", give it a name (the name your bot will have on Discord) and create it. 3. On the "Bot" page: - under "Privileged Gateway Intents", switch on "Message Content Intent" (without it the bot cannot read messages), and also "Server Members Intent" and "Presence Intent" (for the member list); - press "Reset Token" and copy the token. Keep it secret: anyone who has it can use your bot. 4. Invite the bot to a server where you may add bots. Once you are logged in, Server > "Add AmiScord to a server..." builds the invitation link for you. Or in the Developer Portal: OAuth2 > URL Generator, scope "bot", permissions View Channels, Send Messages, Embed Links, Attach Files, Read Message History, Add Reactions. At the first start choose "Bot token": a window asks for the token. Paste it (or "Import from file..."), leave "Remember it" ticked to keep it (ENVARC:DISCORDTOKEN) and press "Log in". From a Shell you can also type: SetEnv SAVE DISCORDTOKEN "Disconnected - Bad bot token" means the token was wrong or reset: delete ENV:DISCORDTOKEN and ENVARC:DISCORDTOKEN and start again. A bot cannot ask Discord for its private conversations: one appears under "Direct Messages" when someone writes to the bot, and AmiScord remembers it. A bot has no read marks at Discord: AmiScord keeps its own on your Amiga. 6. With your own account ------------------------ PLEASE READ THIS FIRST Discord's terms do not allow programs other than its own apps to use a user account ("self-bots" and unofficial clients). Discord can suspend or close an account it sees used that way, without warning, and AmiScord cannot prevent that. If you choose "My account", the risk is yours. Using a second Discord account made for your Amiga, not your main one, is wise. What AmiScord does to behave well: - It says plainly what it is. Its User-Agent is "Mozilla/5.0 (AmigaOS 3; m68k) AmiScord/0.3.1" and it tells Discord it is "AmiScord" on "AmigaOS", in your Amiga's language. It never pretends to be Discord's own app or a web browser. (Accord, the AmigaOS 4 and MorphOS client, does the same.) - It paces its requests as Discord's own app does (at most a burst of 5, then 4 a second) and waits as long as Discord asks when it is told to slow down. - It asks for the member list only as you scroll it, as Discord's app does, and never for a whole server at once. - After a network cut it reconnects after 1, 2, 5, 10, 30, then 60 seconds, never in a tight loop. - It never tries to get round a captcha or any other check of Discord's. None of this is a promise that Discord will leave the account alone. How to log in Choose "My account" at the first start. The window "AmiScord - Log in" opens: - Type your Discord e-mail and password, then press Return or "Log in". - If two-factor authentication is on for your account, a field "Two-factor code" appears: type the 6-digit code of your authenticator app and press Return. - Or press "QR code instead" and scan the code with the Discord app on your phone (Settings > Scan QR Code), then confirm on the phone. Making the code's secure key takes 10 to 90 seconds on a 68k. What Discord may answer: - "Wrong e-mail or password": try again. - "Discord sent you an e-mail to confirm this new place": Discord does not know your Amiga's network yet. Open that e-mail, confirm, then log in again. - "Discord asks for a captcha": Discord wants to check that a person is logging in. No Amiga browser can show its captcha, and AmiScord does not try to get round it: use the QR code instead. - "Too many tries": wait a few minutes. What is kept - Your password is used for that one request and never kept: AmiScord clears it from memory as soon as it has been sent. It is never written to disk. - Discord answers with a session token. AmiScord keeps it, with your e-mail, in ENVARC:AmiScord.session, so that the next starts log in by themselves. Anyone who has that file can use your account: do not give it away or put it in a backup you share. (On AmigaOS any program can read any file; encrypting it with a key kept on the same disk would protect nothing.) - Settings > "Log out..." deletes the session and quits AmiScord; the next start asks you to log in again. If Discord ends the session (password changed, logged out from another device, account disabled), AmiScord deletes it too and says so. - What the account has read, its private conversations and its closed categories are kept in ENV:AmiScord.user.state; a new login starts it afresh. What works with an account - All your servers and the channels you may see; "Direct Messages" lists your private conversations, as in Discord's app. - Read marks are Discord's: reading on the Amiga marks the channel read on your other devices, and the other way round. - The member list is sent by Discord in parts as you scroll it: the first 100 rows, then up to 300. - Everything else as with a bot: messages, replies, reactions, files, emoji, mentions. Limits with an account - The member list stops at 300 rows (about the first 300 members online, by role); offline members of a big server are not listed. - Discord's captcha cannot be shown (use the QR code). - Two-factor login was written from Discord's protocol but has not been tried yet with a real authenticator. - Voice, video, Nitro features, friend requests and account settings are not there. 7. Using AmiScord ----------------- The window, from left to right: - Servers: one icon per server, "Direct Messages" first. A dot under an icon means unread messages, a number counts mentions. - Channels: the server's categories and channels. Unread ones are in bold. A closed category still shows its unread channels. - Messages: the channel shown, with its topic above it. Scroll to the top for older messages. "Pins" shows the pinned messages, "Members" shows or hides the member list. - Members: who may see the channel, by role, with their status. Double-click a member to write to them in private. In the messages: click a picture to view it, a link to open it, a file card to download it, a reaction to add or remove yours. The right mouse button on a message opens its menu: Reply, React, Direct message, Edit, Delete, Copy text, Copy message link, Send a screenshot here, Send machine info here, Save file, Show spoilers. Writing: type at the bottom and press Return. "@", "#" and ":" plus two letters complete members, channels and emoji (Up/Down, Tab or Return, Esc). The smiley button opens the emoji picker; the file button (or an icon dropped on the window) adds a file of up to 20 MB. Mentions of you (or @everyone) are counted, play a sound and pop up a Herald card if Herald runs. Settings > Preferences... sets the theme, avatars, offline members, the sound and Herald. 8. Themes --------- The Theme menu colours the whole window: "MUI" (your MUI settings), "Discord Dark", "Discord Light" and "Workbench 1.3". Workbench 1.3 uses that Workbench's own four colours: blue $05A, white $FFF, black $002 and orange $F80. Names shown in their Discord role colours are made lighter or darker when they would be hard to read on the theme's background (contrast of at least 3:1). Your own theme: a text file Themes/.theme with lines background = #RRGGBB text = #RRGGBB muted = #RRGGBB (times, day lines, reply lines) link = #RRGGBB code = #RRGGBB code_background = #RRGGBB accent = #RRGGBB (optional: server and category names, member list headings, channel name) A key left out keeps Discord Dark's colour. A file named like a built-in theme replaces it. See Themes/Workbench 1.3.theme. 9. ARexx -------- Port AMISCORD.1: CHANNEL ID/K,NAME/K,GUILD/K show a channel SEND TEXT/F/A send a message to the channel shown GETCHANNEL the channel shown: " " CHANNELS the channels of the server shown SERVER ID/K,NAME/K show a server SERVERS the servers ("*" = shown) DM ID/K/A open a private conversation (user id) MENTIONS the mention count STATUS the connection status MEMBERS ON/S,OFF/S,TOGGLE/S the member list PINS, EMOJI, PREFS, FRONT open those LOGIN BOT/S,USER/S the login mode; with one, keep it for the next starts (and quit if it changes) THEME NAME/F, THEMES change the theme, list them MUI's own commands (QUIT, SHOW, HIDE...) work too. RC 5: no such channel, or nothing shown; RC 10: the command failed. address AMISCORD.1 'CHANNEL NAME=general' 'SEND Hello from my Amiga!' 10. Files and settings ---------------------- ENVARC:DISCORDTOKEN the bot's token ENVARC:AmiScord.session the account's session (keep it private) ENV:AmiScord.state bot: last channel, read marks, closed categories, private conversations ENV:AmiScord.user.state the same for the account ENV:AmiScord/ the Preferences, Theme, Login ENV:AmiScord/Compress OFF: uncompressed data (only to help find a fault) T:AmiScord/ downloaded pictures; can be deleted ENVARC:MUI/AMISCORD.1.prefs the window's size and place To start again from nothing, quit AmiScord and delete the files above (both ENV: and ENVARC: copies) and T:AmiScord. 11. Not done yet ---------------- - Threads and forum channels, voice, stickers, polls, forwarded messages, system messages, user profiles, Discord's time stamps, role mentions shown as names, leaving a server. - Known issue: after a click, a file card can stay drawn as pressed. 12. Reporting bugs ------------------ Write to renaud.schweingruber@protonmail.com with what you did, what you expected and what happened, and your Amiga (CPU, OS, MUI, AmiSSL, TCP/IP stack; "Send machine info here" in a message's menu gives most of it). A log helps: before starting AmiScord type SetEnv AMISCORD_LOG T:AmiScord.log then send T:AmiScord.log. The log never contains your token or your password. Delete the variable afterwards (UnSetEnv AMISCORD_LOG). 13. History ----------- 0.3.1 (25.11.2026) - first public release - Log in with your own account: e-mail and password (two-factor code too), or a QR code; honest identity and Discord's own request pacing; the account's member list, filled as you scroll. - Settings > "Switch to ..." (and ARexx LOGIN) changes between the bot and the account. - Compressed connection; reconnection 1-60 s. - Themes: readable texts after a change of theme, readable role colours, Workbench 1.3 in its own colours, an "accent" colour. - Fixes: a crash when quitting soon after the start, the member list jumping back to the top, server icons and the emoji button after a change of theme, the window's close gadget (and Esc) doing nothing on some dates, the member list keeping the previous theme's colours for a few seconds. 0.3 (29.10.2026) - first beta, for a few testers AmiScord grew from discord-mui 0.2s, a public-domain proof of concept. 14. Credits and licences ------------------------ AmiScord (c) 2026 Renaud Schweingruber. Freeware: free to use and to pass on unchanged; it may not be sold. The QR code encoder comes from DiscordSHK by Simo, used with his kind permission. Thank you, Simo! AmiScord started from discord-mui 0.2s (public domain). The emoji pictures are Twemoji graphics, (c) 2020 Twitter, Inc and other contributors, licensed under CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/), shrunk to 14x14 pixels; see emoji/LICENSE.txt. Compression: zlib (c) 1995-2026 Jean-loup Gailly and Mark Adler. JSON is read with cJSON: Copyright (c) 2009-2017 Dave Gamble and cJSON contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. TLS by AmiSSL (OpenSSL), not included. Discord is a trademark of Discord Inc.; AmiScord is not made or endorsed by Discord.