๐Ÿ“ฆ SeleniumHQ / selbot2

bot for #selenium on freenode

โ˜… 14 stars โ‘‚ 28 forks ๐Ÿ‘ 14 watching
๐Ÿ“ฅ Clone https://github.com/SeleniumHQ/selbot2.git
HTTPS git clone https://github.com/SeleniumHQ/selbot2.git
SSH git clone git@github.com:SeleniumHQ/selbot2.git
CLI gh repo clone SeleniumHQ/selbot2
dependabot[bot] dependabot[bot] Bump nokogiri from 1.11.5 to 1.13.10 (#83) b73a1f0 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ bin
๐Ÿ“ lib
๐Ÿ“ spec
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitmodules
๐Ÿ“„ .travis.yml
๐Ÿ“„ Gemfile
๐Ÿ“„ Gemfile.lock
๐Ÿ“„ Procfile
๐Ÿ“„ Rakefile
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Selbot2

IRC bot for the #selenium channel on freenode.

Database

The bot utilizes a PostgreSQL database for persisting data. Follow the installation guides for help getting setup locally.

A database needs to be created and the DATABASE_URL environment variable needs to be set. Typically, localhost is used for development: DATABASE_URL=postgres://localhost/database For use in production, the url should be in the form:

DATABASE_URL=postgres://user:password@host:port/database

Required tables will be genereted automatically by the app.

Startup

To run the bot locally, try:

$ bundle install $ SELBOT_CHANNEL=#my-test-channel bundle exec ruby -I lib bin/selbot2.rb Note that startup is for unknown reasons quite slow. Disabling plugins may or may not help this.

In production, use:

$ OPENISSUEINTERVAL=1800 bundle exec ruby -Ilib bin/selbot2.rb For use with youtube one needs to create an API Key and set that as "youtube.conf" environment variable.