GithubHelp home page GithubHelp logo

tusharsadhwani / dogehouse-py-old Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dogegarden/dogehouse.py

0.0 2.0 0.0 145 KB

Python wrapper for the Dogehouse API.

Home Page: https://wiki.dogegarden.net

Python 100.00%

dogehouse-py-old's Introduction

DogeGarden logo

A Python wrapper for DogeHouse 馃悕

discord - users online


Installation

pip install dogehouse

Example

from dogehouse import DogeClient
from dogehouse.events import ReadyEvent, UserJoinEvent, MessageEvent

doge = DogeClient("token", "refresh_token")


@doge.on_ready
async def make_my_room(event: ReadyEvent) -> None:
    print(f"Successfully connected as @{event.user.username}!")
    await doge.create_room("Hello dogehouse.py!")


@doge.on_user_join
async def greet_user(event: UserJoinEvent) -> None:
    await doge.send_message(f"Hello @{event.user.username}")


@doge.command
async def echo(event: MessageEvent) -> None:
    msg = event.message
    await doge.send_message(f'@{msg.author.username} said {msg.content}')


doge.run()

Check examples for more feature usage.

Tokens

  • Go to dogehouse.tv
  • Open Developer options (F12 or Ctrl+Shift+I)
  • Go to Application > Local Storage > dogehouse.tv
  • There lies your TOKEN and REFRESH_TOKEN

dogehouse-py-old's People

Contributors

arthurdw avatar tusharsadhwani avatar shadofer avatar jackcrispy avatar idlybond avatar dhruv-coder avatar argvsc47 avatar mend-bolt-for-github[bot] avatar

Watchers

James Cloos avatar  avatar

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.