url

command
Version: v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Avatar Url Example ====

This example demonstrates how to utilize DiscordGo to change the account avatar using a remote url provided via a commandline flag.

Build

This assumes you already have a working Go environment setup and that DiscordGo is correctly installed on your system. Change directory into the example.

cd $GOPATH/src/github.com/bwmarrin/discordgo/examples/avatar/url
go build

Usage

Please place the file you wish to use as an avatar inside the directory named as avatar.jpg. The filename is not important if you supply it via the commandline flag -l when starting the application. If the flag is not specified avatar is set to DiscordGo Logo.

./url --help
Usage of ./url:
  -e string
        Account Email
  -p string
        Account Password
  -t string
        Account Token
  -l string
  		Link to the avatar image.

For example to start application with Token and a non-default avatar:

./url -t "YOUR_BOT_TOKEN" -l "http://bwmarrin.github.io/discordgo/img/discordgo.png"

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL