Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Discord client for 9front

NotificationsYou must be signed in to change notification settings

henesy/disco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disco:Discord client for 9front

Fork of theboxmage'sdiscord-cli.

Ndb config is in$home/lib/disco.ndb for setting password, should be made automatically after first run. Alternatively, you may use factotum.

Install

Dependencies

  • 9fans.net/go/plan9
  • github.com/Plan9-Archive/libauth
  • github.com/mischief/ndb
  • golang.org/x/crypto
  • github.com/gorilla/websocket
  • github.com/bwmarrin/discordgo

Installation

% go get github.com/henesy/disco

Usage

% disco -hUsage of disco:  -nEnable notifications  -tHide timestamps in channel log  -w string    Dimensions to pass through to statusmsg (default "10,10,260,90")

Commands

Commands available in chat:

CommandFunction
:qQuits disco
:gChange listening Guild
:c [n ?]Change listening Channel inside Guild, or list channels
:m [n]Display last [n] messages: ex.:m 2 displays last two messages
:pPulls up the private channel menu
:n nameChange nickname toname
:!Print current server information
:?List the available commands

You can regex the last message sent using a format such as:

s/forsynth/forsyth/

Config

A basic$home/lib/disco.ndb looks something like:

auth=passloadbacklog=truemessages=10promptchar=→timestampchar=>username=coolperson@mycooldomain.compassword=somepassword1

Note that the auth= tuple accepts

auth=factotum

for authentication using a factotum key and will ignore the password= tuple.

If used, the factotum key should resemble something to the effect of:

proto=pass server=discordapp.com service=discord user=youremail@domain.com !password=hunter2

Notes

If you can connect to a channel and see messages, but yours aren't sending, check to make sure your e-mail address is verified.

FAQ

Q: What ifgo get doesn't work?

A: If you want to usego get on 9front to install disco and its dependencies (recommended) you should usedriusan's dgit asgit. Alternatively, on 9front specifically, you can wrap Ori'sgit9.

Q: What if I can't login because of a captcha error?

A: You'll need to sign in to Discord via the web app (thus solving a captcha) using a browser with html5/js. I recommend an http proxy such asthis in conjunction with a system with such a browser..

Q: What if I get an error about signing in from a new location?

A: Discord has sent you an e-mail with a location confirmation link, click it, no js should be required.

Problems

  • Does not create accounts for you, this still needs to be done in a browser/app
  • Does not support 2FA (Discord API explicitly does not allow this)

About

Discord client for 9front

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp