Twip
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ Twip์ ๊ณต์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์๋๋ฉฐ, Twip์์ ์คํธ๋ฆฌ๋จธ๋ค์๊ฒ ์ ๊ณตํ๋ Alert Box๋ฅผ ์ด์ฉํด์ ๋๋ค์ด์
, ํ๋ก์ฐ, ํธ์คํ
๋ฑ์ ์ด๋ฒคํธ์ ๋ํด์ ๊ฐํธํ๊ฒ ๋์ํ๊ธฐ ์ํด์ ๋ง๋ค์ด์ก์ต๋๋ค.
๐ฅ ์ค์น
pip install twip-api
โ๏ธ Example
from twip import Twip, Donate, Follow, Subscribe, Hosting, Cheer, Sound, Slotmachine
class MyTwip(Twip):
def on_ready(self):
print("Twip is ready!")
def on_donate(self, donate: Donate):
print(donate)
def on_follow(self, follow: Follow):
print(follow)
def on_subscribe(self, subscribe: Subscribe):
print(subscribe)
def on_hosting(self, hosting: Hosting):
print(hosting)
def on_cheer(self, cheer: Cheer):
print(cheer)
def on_sound(self, sound: Sound):
print(sound)
if __name__ == "__main__":
myTwip = MyTwip()
myTwip.run("your alert box id", "your twip api token")
๋ ๋ง์ ์์ ๋ Github example.py ์์ ํ์ธํ์ธ์.
๐ฅ Events
- on_ready : ํธ์๊ณผ ์ฒ์์ผ๋ก ์ฐ๊ฒฐ๋์์ ๋
- on_donate : ํ์, ์์ํ์, ์ฌ๋กฏ๋จธ์ (๋ฃฐ๋ )
- on_subscribe : ๊ตฌ๋
- on_hosting : ํธ์คํ
- on_cheer : ๋นํธ
- on_follow : ํ๋ก์ฐ
- on_sound : ์๋ฆฌ
๐ Version
- 0.0.7 : ์ฌ์ด๋ ์ด๋ฒคํธ๊ฐ ์์ ๋ ๋ฐ์ํ๋ ๋ฒ๊ทธ ์์
- 0.0.8 : api key๋ฅผ ์ง์ ์
๋ ฅ ๋ฐ๋๋ก ์์ (#1)
- 0.0.8.1 : ํ ํฐ ํฌ๋กค๋ง ์ต์
์ถ๊ฐ (#1)
- 0.0.8.2 : ํจ์ ์ด๋ฆ ๊ด๋ จ ๋ฒ๊ทธ ์์
- 0.0.9 : on_ready ์ด๋ฒคํธ ์ถ๊ฐ
- 0.0.9.1 : ํฌ๋กค๋ง๋ ํ ํฐ์ด ์ ํจ๊ธฐ๊ฐ์ด ์ง๋ ํ์๋ ๊ณ์ํด์ ์ฌ์ฉ๋๋ ๋ฒ๊ทธ ์์
- 1.0.0 : ํ์
ํํธ ์ถ๊ฐ ๋ฐ ๊ตฌ์กฐ ๊ฐํธ
๐ฎ License
๊ธฐํ๋ฌธ์