FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JG_API-ExampleBot/src/main/java/dev/jgapi/examplebot/Bot.java at main · JGAPI/JG_API-ExampleBot · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Aug 10, 2022. It is now read-only.
JGAPI
/
JG_API-ExampleBot
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JG_API-ExampleBot
/
src
/
main
/
java
/
dev
/
jgapi
/
examplebot
/
Bot.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (20 loc) · 738 Bytes
Breadcrumbs
JG_API-ExampleBot
/
src
/
main
/
java
/
dev
/
jgapi
/
examplebot
/
Bot.java
Copy path
File metadata and controls
25 lines (20 loc) · 738 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package
dev
.
jgapi
.
examplebot
;
import
dev
.
jgapi
.
examplebot
.
config
.
ConfigManager
;
import
dev
.
jgapi
.
examplebot
.
handlers
.
EventHandler
;
import
dev
.
jgapi
.
jg_api
.
JG_API
;
public
class
Bot
{
static
JG_API
jg_api
;
public
static
void
main
(
String
[]
args
) {
try
{
jg_api
=
new
JG_API
.
ClientBuilder
()
.
setParentServerId
(
ConfigManager
.
getInstance
().
getProperty
(
"GUILDED_SERVER_ID"
))
.
setToken
(
ConfigManager
.
getInstance
().
getProperty
(
"GUILDED_TOKEN"
))
.
addListenerAdapter
(
new
EventHandler
())
.
build
();
jg_api
.
login
();
jg_api
.
start
();
}
catch
(
Exception
e
) {
e
.
printStackTrace
();
}
}
}
Back
|
FazBrowse Home
|
New Git URL