GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - atla/goirc-xdcc: Golang xdcc addon for the popular fluffle/goirc package

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
bot
bot
 
 
xdcc
xdcc
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
goirc-xdcc
goirc-xdcc
 
 
main.go
main.go
 
 

Repository files navigation

goirc-xdcc

xdcc addon for the popular fluffle/goirc package

Usage:

You can either use the xdcc package as an addon to the Connection class of fluffle/goirc and add xdcc capabilities like that:

xdcc := xdcc.New(bot.conn)

xdcc.GetXdcc(pack.Host, fmt.Sprintf("xdcc send #%d", pack.PackageID), "./downloads/")

or you can use the convenience bot package that makes use of fluffle/goirc and the xdcc package to automate file downloads by providing an easy to use interface:


import "github.com/atla/goirc-xdcc/bot"

func main() {

	xdccBot := bot.New()

	// bot will get a package and store it in ./downloads/ folder
	xdccBot.Get(bot.Package{
		Host:    "botxy123",
		Network: "irc.freenode.net",
		// channel the client has to be in in order to receive a transfer from the bot
		Channel: "#channel1",
		// sometimes there is a second channel that you have to connect to before bot will send you files
		CompanionChannel: "#otherChannel",
		PackageID:        42,
	})

}

Future updates planned:

  • DCC Resume command
  • proper quitting of the bot after download
  • Percentage updates in form of an DownloadUpdate channel

About

Golang xdcc addon for the popular fluffle/goirc package

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.