在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-shipyard/ipfs-hubot开源软件地址:https://github.com/ipfs-shipyard/ipfs-hubot开源编程语言:CoffeeScript 92.9%开源软件介绍:ipfs-hubot
ipfsbot is a chat bot built on the Hubot framework. It was initially generated by generator-hubot, and configured to be deployed on Heroku to get you up and running as quick as possible. This README is intended to help get you started. Definitely update and improve to talk about your own instance, how to use and deploy, what functionality he has, etc! Table of Contents
Installation and UsageRunning ipfsbot LocallyYou can test your hubot by running the following, however some plugins will not behave as expected unless the environment variables they rely upon have been set. You can start ipfsbot locally by running:
You'll see some start up output and a prompt:
Then you can interact with ipfsbot by typing
ConfigurationA few scripts (including some installed by default) require environment variables to be set as a simple form of configuration. Each script should have a commented header which contains a "Configuration" section that explains which values it requires to be placed in which variable. When you have lots of scripts installed this process can be quite labour intensive. The following shell command can be used as a stop gap until an easier way to do this has been implemented.
How to set environment variables will be specific to your operating system. Rather than recreate the various methods and best practices in achieving this, it's suggested that you search for a dedicated guide focused on your OS. ScriptingAn example script is included at For many common tasks, there's a good chance someone has already one to do just the thing. external-scriptsThere will inevitably be functionality that everyone will want. Instead of writing it yourself, you can use existing plugins. Hubot is able to load plugins from third-party
To use a package, check the package's documentation, but in general it is:
You can review Advanced UsageIt is also possible to define {
"hubot-fun": [
"crazy",
"thanks"
],
"hubot-auto-deploy": "*"
} Be aware that not all plugins support this usage and will typically fallback to including all scripts. hubot-scriptsBefore hubot plugin packages were adopted, most plugins were held in the hubot-scripts package. Some of these plugins have yet to be migrated to their own packages. They can still be used but the setup is a bit different. To enable scripts from the hubot-scripts package, add the script name with
extension as a double quoted string to the PersistenceIf you are going to use the
If you don't need any persistence feel free to remove the AdaptersAdapters are the interface to the service you want your hubot to run on, such as Campfire or IRC. There are a number of third party adapters that the community have contributed. Check Hubot Adapters for the available ones. If you would like to run a non-Campfire or shell adapter you will need to add
the adapter package as a dependency to the Once you've added the dependency with
Where Deployment
If your Heroku account has been verified you can run the following to enable and add the Redis to Go addon to your app.
If you run into any problems, checkout Heroku's docs. You'll need to edit the More detailed documentation can be found on the deploying hubot onto Heroku wiki page. Deploying to UNIX or WindowsIf you would like to deploy to either a UNIX operating system or Windows. Please check out the deploying hubot onto UNIX and deploying hubot onto Windows wiki pages. Campfire VariablesIf you are using the Campfire adapter you will need to set some environment variables. If not, refer to your adapter documentation for how to configure it, links to the adapters can be found on Hubot Adapters. Create a separate Campfire user for your bot and get their token from the web UI.
Get the numeric IDs of the rooms you want the bot to join, comma delimited. If
you want the bot to connect to
Add the subdomain hubot should connect to. If you web URL looks like
Restart the botYou may want to get comfortable with ContributeFeel free to join in. All welcome. Open an issue! This repository falls under the IPFS Code of Conduct. Want to hack on IPFS? LicenseMIT © Protocol Labs Inc. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论