Project

weeb

0.0
No commit activity in last 3 years
No release in over 3 years
A gem that utilizes the weeb.sh API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
= 0.8.0
= 0.49.1

Runtime

 Project Readme

Weeb.rb

Gem Version Gem Downloads Travis Inline docs Docs

A wrapper gem for the weeb.sh API.

Dependencies

Installation:

Just

gem install weeb

Examples

require 'weeb'
client = WeebSh::Client.new('Wolke #######', 'weeb/1.0.0/example')
# You can also set the API url by setting 'api_url'

# Using WeebSh::Client ties all interfaces together, but you can also use them seperately:
standalone_interface = WeebSh::Toph.new('Wolke #######', 'weeb/1.0.0/toph_example')

Toph

client.toph.list # [#<WeebSh::WeebImage, ...>]
client.toph.random(type: 'discord_memes') # #<WeebSh::WeebImage @url="https://cdn.weeb.sh/images/rkDQ-DVs-.png" @type="discord_memes" @nsfw=false>

Contributing

You should always run these two things in terminal (and use common sense!):

rubocop
inch suggest

License

The contents of this repository are licensed under the MIT license. A copy of the MIT license can be found in LICENSE.md.