GithubHelp home page GithubHelp logo

ng-bttv's Introduction

NgBttv

ng-bttv is simple Angular service for fetching BTTV emotes (JPEG, PNG or GIFs).

FEELSWAYTOOGOOD Showcase

YEPP Demo Repo

IF NYMN SEES THIS, VI VON ZULUL AND HAS TO ENABLE YEPP

How to install

npm i --save @nggondolas/ng-bttv

Now import the NgBttvModule on your app.module.ts.

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NgBttvModule } from '@nggondolas/ng-bttv';

@NgModule({
    declarations: [AppComponent],
    imports: [BrowserModule, NgBttvModule],
    bootstrap: [AppComponent],
})
export class AppModule {}

And inject the NgBttvService in your component.

import { Component } from '@angular/core';
import { NgBttvService } from '@nggondolas/ng-bttv';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss'],
})
export class AppComponent {
    // First param is the emote ID
    // Second is the size (1 || 2 || 3)
    okayge = this.emoteService.getEmote('5dfd5fd19e2cd00d968d3a4d', 1);

    constructor(private emoteService: NgBttvService) {
    }
}

Now you can use it like this:

<a class="circle-link" href="#">
    <img [src]="okayge">
</a>

List of built-in emotes

Some emotes are already baked in to the service via helper methods.
If you can't find them on this list, then just use the getEmote() with the ID and size you want.

Emote Method
OMEGALUL getOMEGALUL
PogU getPogU
Sadge getSadge
ZULUL getZULUL
Okayge getOkayge
monkaW getMonkaW
LULW getLULW
monkaPickle getMonkaPickle
WeirdChamp getWeirdChamp
forsenCD getForsenCD
PogOh getPogOh
YEPP getYEPP
EZ getEZ
PepeLaugh getPepeLaugh
FeelsWeirdMan getFeelsWeirdMan
ForsenSmug getForsenSmug
PagMan getPagMan
MEGALUL getMEGALUL
PajaThink getPajaThink
GachiGASM getGachiGASM
ForsenPls getForsenPls
FEELSWAYTOOGOOD getFEELSWAYTOOGOOD
HACKERMANS getHACKERMANS
ForsenSWA getForsenSWA
WAYTOODANK getWAYTOODANK
monkaE getMonkaE
ForsenDiscoSnake getForsenDiscoSnake
GondolaPls getGondolaPls
NODDERS getNODDERS
TeaTime getTeaTime
WEEBSDETECTED getWEEBSDETECTED

ng-bttv's People

Contributors

ixquitilissaid avatar

Stargazers

Paweł Mendroch avatar Agony avatar

Watchers

James Cloos avatar

ng-bttv's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.