Stoibot is a JAVA based bot to tweet every day a quote from a stoic author

Overview

Stoibot

The philosophical twitter bot, every day, a random stoic quote

Current version: 0.8 (20/02/2022)

Current status: Waiting to elevated access to the API Twitter to test the system

Author: https://juliancampos.es

Twitter account: https://twitter.com/citasestoicas

Stoibot is a JAVA based bot to tweet every day a quote from a stoic author. The target of the bot is create a simple mysql and java based system to test some libraries and the mysql driver.

The system is not finished yet. We need the elevated access to the API Twitter to post the quote, so I can't test the API yet and I don't know if it works properly. I'm still waiting...

Technologies

The bot is working with JAVA, a simple relational database (MySQL), differents JAVA Maven libraries:

  • JAVA SE
  • MySQL database
  • MySQL-connector library
  • Twitter4j library

How does it work?

For the bot I've created a simple MySQL database with 1 table and 3 rows:

  • Id: primary id with autoincrement
  • Quote: varchar with the text of the quote
  • Author: varchar with the author name

The JAVA script works with only 2 classes:

  • Main class: connection to twitter API, infinite loop to tweet everyday (it sleeps 23h and 59 minutes) and generating the string for the tweet.
  • Quote class: getting the information from the database.

If you need modify the script for other pourpose, you need read the comments of the code. I'll generate javadoc and maybe I'll detail the program in this readme.md, but for the instance the comments are very simple (as the program is).

You have a file named twitter4j.properties where you should define your Twitter API Keys.

Next Step:

I've applied for the elevated access for the API of Twitter. When I could, I'll test that the program tweets properly the quote.

The connection to the API is correct (tested with Twitter.getInstance()).

You might also like...

Create your Java crypto trading bot in minutes. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions so you can focus on building your strategies.

Create your Java crypto trading bot in minutes. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions so you can focus on building your strategies.

Quick Start | Documentation | Discord | Twitter Create and run your java crypto trading bot in minutes Our Spring boot starter takes care of exchange

Jan 3, 2023

An open source Discord Bot made in Java!

An open source Discord Bot made in Java!

ShiShi An open source Java Discord bot Report Bug . Request Feature About The Project This is a open source Java discord bot making use of the JDA lib

Aug 5, 2022

This is some Discord bot I made to help me learn Java. Not very useful yet.

JennyChan This is some Discord bot I made to help me learn Java. Not very useful yet. What it can do so far: Reply to mention List commands Show bot u

Sep 1, 2022

A Java Discord Bot Base that supports Slash Commands!

Nyjava Nyjava is a discord bot base that supports 🎉 Discord Slash Commands! 🎉 I'll see where I go with this, I might update it, I might not. Time wi

Nov 19, 2022

NeoBotCore is an extensible Discord Bot created using Java.

NeoBotCore A NeoBotCore is an implementation of the NeoBotAPI. NeoBot is an extensible Discord Bot developed using Java. By combining modules, you can

Jun 22, 2022

Bot de Telegram que informa del precio del combustible en las gasolineras más próximas a tu ubicación

Telegram BOT Bot de Telegram en JAVA y SQLite. Sirve para consultar los precios de las gasolineras más cercanas a tu ubicación. Los datos son proceden

Jan 12, 2022

A simple and scalable Android bot emulation framework, as presented at Black Hat Europe 2021's Arsenal, as well as atHack 2021's Arsenal

m3 A simple and scalable Android bot emulation framework. A detailed explanation can be found here. This project was first published at Black Hat Euro

Aug 20, 2022

RTX 30XX Bot für notebooksbilliger.de

RTX 30XX Bot für notebooksbilliger.de

nbbot ist ein Bot, um RTX Grafikkarten bei notebooksbilliger.de zum UVP (Normalpreis) zu ergattern. notebooksbilliger.de hat die exklusive Partnerscha

Nov 26, 2022

TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address

TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address

TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address. It can create, manage, disposable email address and link them with your telegram bot chat.

Dec 28, 2022
Releases(1.0)
Owner
Julián Campos
DAM student in ILERNA Self-student in JAVA, PHP and SQL
Julián Campos
Always High is a College help app catered towards helping college students in managing their day-to-day hassle!

Always High Always High is a College help app cattered towards helping the college students in managing their day-to-day hassle! Problem : In the onli

Tirth Joshi 1 Mar 16, 2022
A little of Java content every day for a hundred days.

100 Days of Java Table of Contents Day 1 - Generating a random number within a specific range. Day 2 - Formatting a LocalDateTime object. Day 3 - Sche

Helber Belmiro 164 Dec 27, 2022
Some anti afk bot which prevents you from getting punished for going afk in games. Way of stopping the bot is slightly flawed but we'll ignore that.

AntiAFK Some anti afk bot which prevents you from getting punished for going afk in games. Gui mode coming soon... Installation Install Java 17. Downl

flasky 1 Jan 13, 2022
Find out what the sign is from a specific day and month

WhatMySign Find out what the sign is from a specific day and month Preview How to use To run it is simple, first download the file of the program by c

null 1 Feb 3, 2022
Customizable calendar with animations and ability to select a day, a week, a month or a custom range

?? RangeCalendarView A customizable, easy-to-use calendar with range selection Screenshots Getting started This library is available on Maven Central,

Oleg Khmaruk 10 May 20, 2022
This repository contains Java programs to become zero to hero in Java. Programs related to each and every concep are present from easy to intermidiate level.

Learn Java Programming In this repository you will find topic wise programs of java from basics to intermediate. This follows topic wise approach that

Sahil Batra 15 Oct 9, 2022
COMPortNotifier - Smol utility to send you a notification every time you connect, or disconnect a COM port.

COMPortNotifier A smol utility that sends you a notification every time a COM port is connected, or disconnected on your computer. Useful for electric

Matt Foulks 1 Sep 7, 2022
Get Best Resources on every Domain here!

Useful Resources for Developers To join DEVs Dungeon GitHub Organization, click here ➤ If you find this REPOSITORY helpful, then do give it a ?? by pr

DEVs Dungeon 192 Dec 29, 2022
Simple springboot API for addressBook. Supports all REST controllers and have custom error handling for every specific case, also supports redis caching.

AddressBook-SpringBoot-API Simple Springboot API for addressBook with redis cache. Supports all REST controllers and have custom error handling for ev

Shirish Saxena 1 Jan 21, 2022
Shows Image you select on Top of every Window by holding the button you choose

ImageOnTop What it does? Shows Image you select on Top of every Window by holding the button you choose. How to use it? Press a keyboard key you want

null 1 Jan 23, 2022