summaryrefslogtreecommitdiff
path: root/src/twitch/client.cr
diff options
context:
space:
mode:
authorJonathan B <greenbigfrog@gmail.com>2019-08-14 21:39:18 +0200
committerJonathan B <greenbigfrog@gmail.com>2019-08-14 21:39:18 +0200
commite611e739d7177fbe5ee404e8b77e00bb584721cc (patch)
treebfad16f083ebe289fd7fc2e9dae842150e61fa98 /src/twitch/client.cr
parent99b3d7287bd0ac36ee82129ad38bd88c5b5af625 (diff)
downloadtwitcr-e611e739d7177fbe5ee404e8b77e00bb584721cc.tar.gz
twitcr-e611e739d7177fbe5ee404e8b77e00bb584721cc.zip
Add require
Diffstat (limited to 'src/twitch/client.cr')
-rw-r--r--src/twitch/client.cr27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/twitch/client.cr b/src/twitch/client.cr
deleted file mode 100644
index 8502b90..0000000
--- a/src/twitch/client.cr
+++ /dev/null
@@ -1,27 +0,0 @@
-require "./rest"
-require "./mappings/*"
-
-module Twitcr::Client
- include REST
-
- getter token : String
- getter client_id : String
-
- def initialize(@token, @client_id)
- @token = "Bearer" + @token
- end
-
- def user?(name : String)
- true if get_user_by_login(name)
- rescue EMPTY_RESULT
- false
- end
-
- def user(name : String)
- get_user_by_login(name)
- end
-
- def user(id : Int64)
- get_user_by_id(id)
- end
-end