-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run? #1
Comments
I've added $ export GOPATH=$HOME/go # make sure you have your GOPATH exported.
$ go get github.com/shizeeg/jagod # install & build sources `jagod` should be found in `$GOPATH/bin` after this
$ sudo cp $GOPATH/bin/jagod /usr/local/bin # or whatever you prefer
# edit jago.cfg file, put jabber id (JID) info etc.
# now you can run it:
$ jagod
# that's it. |
Thanks for fast answer :-) How to install plugins which are in |
a fast answer? It's almost a year. =D OK about plugins... You have to compile existing plugins separately. Technically a plugin is a standalone command-line utility that should take 2+ parameters. First parameter so a plugin can be any command line executable (written in any language), that can take 2+ parameters and produces textual output. Here is an example of a plugin in shell-script called #!/bin/sh
/usr/bin/whois "${2}" | grep 'address:' | sed 's| ||g' | cut -d ':' -f2 | tail -1 you may call a file whatever you like and add it to jago.cfg somewhere after [plugins]
CALC="excalc"
GOOGLE="google"
SPELL="yandex spell"
TR="yandex"
WEATHER="gismeteo"
TLD="tld" # here On Windows you probably should place all needed plugins in the same directory with main executable. (
[yandex]
dictapi="dict.1.1.bla-bla" here is the link: https://tech.yandex.com/keys/get/?service=dict About command prefix: Note about why you have to double the prefix: the syntax of command parser is:
<prefix><section> and optional parameters. But I'm too lazy to implement actual sections so you may put any character instead. The most simple thing is just double the prefix.
|
Nice. Thanks for help -) |
thanks for your interest in my humble project. :) |
How to run your bot in my server? Ubuntu Server 14.04\Windows\x64.
Please, step-by-step.
The text was updated successfully, but these errors were encountered: