Creating a Mastodon bot using Java and Mastodon4j

Create a Mastodon bot using Mastodon4j

Happy Coding

I seems @bocops and I have found a new name for the current #BigBone project: It's "yuki", that's it. It's Japanese and means "snow". I like the name because it is short, easy to remember. Furthermore, our library originates from the #mastodon4j project, whose author is also japanese.

So far I have not found any negative interpretation of this word.

#BigBone #Yuki #Mastodon #Java #Kotlin

The moment you realise @andregasser had a busy night! 馃憦

#bigbone #mastodon4j #java #kotlin

It's done: I have created release notes for all #BigBone snapshots published since I have started to work on a detached fork of #Mastodon4J. I will continue to do so for all coming releases.

To the release notes collection:
https://github.com/andregasser/bigbone/releases

#Java #Kotlin #Github #Mastodon #Library

Releases 路 andregasser/bigbone

BigBone - A Mastodon Client Library for Java and Kotlin - andregasser/bigbone

GitHub

A new #BigBone snapshot was pushed this morning. There was an integer overflow issue reported by a #Mastodon4J user.

Probably caused by some fake / spam accounts, but still, the library should be able to parse this data.

More details here:
https://github.com/andregasser/bigbone/issues/176

#Java #Kotlin #Android

Replace Int with Long data type for various count values 路 Issue #176 路 andregasser/bigbone

This issue has been copied from here: sys1yagi/mastodon4j#90 Description of the pull request author: gson throws NumberFormatException if followersCount and so on exceed Int limit. It may be desira...

GitHub

I have just opened a new issue in #BigBone for an integer overflow that someone seems to be experiencing with #Mastodon4J. It seems to happen, when account information is parsed (follower count, status count, etc...).

That's interesting. These fields are currently typed as Int, whereas Int has a max value of 2'147'483'647.

Can anyone provide me a link to an account with such a high number of followers or accounts?

https://github.com/andregasser/bigbone/issues/176

Replace Int with Long data type for various count values 路 Issue #176 路 andregasser/bigbone

This issue has been copied from here: sys1yagi/mastodon4j#90 Description of the pull request author: gson throws NumberFormatException if followersCount and so on exceed Int limit. It may be desira...

GitHub

#bigbone: Mastodon Client Library for #Java and Kotlin https://github.com/andregasser/bigbone

BigBone is a fork of #Mastodon4J, a #Mastodon client library for Java and Kotlin that was published by Toshihiro Yagi.

GitHub - andregasser/bigbone: BigBone - A Mastodon Client Library for Java and Kotlin

BigBone - A Mastodon Client Library for Java and Kotlin - andregasser/bigbone

GitHub
@jitterted @KevinWorkman Hi all! Thanks for mentioning our fork. So far, we have mostly been working on putting the existing code on an up-to-date basis, e.g. updating the build system, dependencies, and such. Also, we have fixed several bugs already that have been present in the code (some of them have also been reported in #Mastodon4J). Furthermore, a lot of code was restructured to simplify the API. For the coming releases, we plan to extend the Mastodon API coverage. https://github.com/andregasser/bigbone/issues?q=is%3Aissue+is%3Aclosed
GitHub - andregasser/bigbone: BigBone - A Mastodon Client Library for Java and Kotlin

BigBone - A Mastodon Client Library for Java and Kotlin - andregasser/bigbone

GitHub

New tutorial!

Use Mastodon4j to create your own Mastodon bots in Java! 馃馃悩

https://happycoding.io/tutorials/java/libraries/mastodon4j

Hashtags feel like spam, but apparently that's how Mastodon works sooo #java #coding #tutorial #mastodon #bot #bots #mastodonbot #mastodon4j #hashtags

Creating a Mastodon bot using Java and Mastodon4j

Create a Mastodon bot using Mastodon4j

Happy Coding
Btw: Kudos to @factotum who was so kind to fix one of the issues that caused some headaches for some former #Mastodon4J library users in the past. Should be working well in #Bigbone now. https://github.com/andregasser/bigbone/issues/25
Change type of id field in entities to from Long to String if necessary 路 Issue #25 路 andregasser/bigbone

Some entities in the "entity" package specify an "id" attribute of type Long. According to the API docs, ids are not guarenteed to be numeric and should have a data type of Stri...

GitHub