# I am new at Twitch4J developing in Java

**URL:** <https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276>\
**Category:** Migration\
**Created:** [December 11, 2022, 1:26pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276 "2022-12-11T13:26:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 1:26pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/1 "2022-12-11T13:26:32Z")

</div>

Can someone help me at creating my first Twitch4J bot? because i don’t really get it. Just add me on discord.  
dc: Drogato#0420

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 11, 2022, 1:59pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/2 "2022-12-11T13:59:43Z")

</div>

You want want to pop into the Twitch4j specific room on the libraries discord over at [Twitch API](https://discord.gg/8NXaEyV)

---

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 2:01pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/3 "2022-12-11T14:01:10Z")

</div>

I’m already in that discord but the discord is dead i think

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 11, 2022, 2:02pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/4 "2022-12-11T14:02:51Z")

</div>

The discord(s) and the forums share the same user base for the most part.

I don’t know java so I’m pointing you to the best place for support on the specific library you are using.

Might just be that no one is about over the weekend that use the library.

---

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 2:09pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/5 "2022-12-11T14:09:24Z")

</div>

Okay thx mate i have a question how can i get the chat token? i don’t realy get how i can generate it

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 11, 2022, 2:11pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/6 "2022-12-11T14:11:58Z")

</div>

Basic oAuth authentication

> **[Authentication](https://dev.twitch.tv/docs/authentication/)**
>
> Authentication

Chat Quick start guide for a token:

> **[Authenticating with the Twitch IRC Server](https://dev.twitch.tv/docs/irc/authenticate-bot/)**
>
> Authenticating with the Twitch IRC Server

The CLI can do the hard work for you for a quick test.

---

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 2:18pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/7 "2022-12-11T14:18:35Z")

</div>

And how can i add the token right?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 11, 2022, 2:19pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/8 "2022-12-11T14:19:31Z")

</div>

Not sure what you mean by “add the token”

---

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 2:21pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/9 "2022-12-11T14:21:44Z")

</div>

in the code i created a helix token and how can i use that?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 11, 2022, 2:22pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/10 "2022-12-11T14:22:25Z")

</div>

I don’t use java or Twitch4j so not sure.

---

<div class="post-metadata">

**Author:** ![xyolomc](https://avatars.discourse-cdn.com/v4/letter/x/4491bb/32.png) [@xyolomc](https://discuss.dev.twitch.com/u/xyolomc)\
**Post date:** [December 11, 2022, 2:31pm UTC](https://discuss.dev.twitch.com/t/i-am-new-at-twitch4j-developing-in-java/42276/11 "2022-12-11T14:31:47Z")

</div>

you probalby know what this error means?

```auto
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.github.twitch4j.helix.TwitchHelix.getUsers(String, java.util.List, java.util.List)" because the return value of "com.github.twitch4j.IClientHelper.getTwitchHelix()" is null
	at com.github.twitch4j.IClientHelper.enableStreamEventListener(IClientHelper.java:103)
	at de.bot.Main.<init>(Main.java:67)
	at de.bot.Main.main(Main.java:41)

```
