TheGodFather Extensions 2

Bible, Dictionaries, Horoscopes, Jokes, Haiku, SurpriseMe


An extension is a separate PHP file that TheGodFather calls when a keyword match is found in a message. All extensions are set to work with FGC=https://YOUR-URL.COM/path-to-file.php (in the Phrases box of the subset) which tells TheGodFather to make the call internally using php-curl or file_get_contents. A redirection is another option if the extension file is on the same server: RDR=https://YOUR-URL.COM/path-to-file.php. In case you want to change the keywords - any change in AdminCP » Machines » TheGodFather » {subset} requires adjusting the code of the extension file.

TIP! It would be easier to maintain your extensions if you put the files in a separate folder outside the chat folder. The extensions that require a connection to a MySQL database - import the tables in a separate database (all extensions in one database is ok). The tables are large and you don't need to make regular backups as they don't change.


The Good Book

Description

  1. TheGodFather replies with a verse from the Bible when requested
  2. TheGodFather replies with a cross-reference from the Bible if a key to a verse is found
  3. TheGodFather provides a hint how to request a verse when the name of any book is found

How it works

  1. You: Romans 2:2 » TheGodFather: (Romans 2:2) And we know that the judgment of God is according to truth against them that practise such things.
  2. You: ...as Paul says in Romans 3:4... » TheGodFather: (Psalm 51:4) Against thee, thee only, have I sinned, And done that which is evil in thy sight; That thou mayest be justified when thou speakest, And be clear when thou judgest.
  3. You: What about Samuel? » TheGodFather: Any verse from the Bible can be displayed with the following syntax: Revelation 1:1 Deuteronomy 6:1-2 2 Corinthians 1:1-5. When the same is found in a message a cross-reference is returned.

How to install

It is recommended to use a separate MySQL database. bible-mysql.sql and cross_reference-mysql.sql can be downloaded from this GitHub repo or bible-mysql. You have to import bible-mysql.sql and cross_reference-mysql.sql in the MySQL database using phpMyAdmin or Adminer.

Import SQL files with Adminer

method 1: select target database from the drop-down menu » Import [uncheck STOP ON ERRORS] » Browse... » Execute
method 2: (an alternative for big files) select target database from the drop-down menu » Import [uncheck STOP ON ERRORS], upload the .sql file as adminer.sql then Run file.


Horoscopes (MySQL, English only)

Description

TheGodFather replies with the horoscope of the day. The syntax is: horoscope aquarius or horoscope libra tomorrow or horoscope gemini 2 where 2 is the day after tomorrow and values between 0 and 6 are accepted (0 = today).

How it works

You: horoscope aquarius tomorrow » TheGodFather: Aquarius 🏺 October 7th, Thursday ➡ You need to let certain people know that you no longer care what they say or what they do. That might sound a bit extreme but if you don't do it now they will keep annoying you and make an even bigger falling-out more likely later on.

How to install

It is recommended to use a separate MySQL database. Download Horoscopes MySQL Data. You have to import horoscope.sql.gz in the MySQL database using phpMyAdmin or Adminer.

Import SQL files with Adminer

method 1: select target database from the drop-down menu » Import [uncheck STOP ON ERRORS] » Browse... » Execute
method 2: (an alternative for big files) select target database from the drop-down menu » Import [uncheck STOP ON ERRORS], upload the .sql.gz file as adminer.sql.gz then Run file.


Horoscopes ML (SQLite, multilanguage)

Description

TheGodFather replies with the horoscope of the day in English, French, German, Netherlands, Spanish, Portuguese and Polish. The syntax is: horoscope aquarius or horóscopo amanhã Gêmeos pt or horoscoop Boogschutter 2 where 2 is the day after tomorrow and values between 0 and 6 are accepted (0 = today). Automatic language selection based on the keywords. Having en, fr, de, nl, es, pt, pl match in the message forces the corresponding language.

How it works

You: horoscop Zwillinge 2 » TheGodFather: Zwillinge 👬 2022-09-11 ➡ Ihre körperlichen und emotionalen Reserven sind im Moment wahrscheinlich etwas erschöpft, also lassen Sie es heute und morgen ruhig angehen. Es gibt eine Reihe von Möglichkeiten, wie Sie Ihre Gesundheit verbessern und Ihre Arbeitsroutine straffen können, ohne dabei albern zu wirken.

How to install


Jokes

Description

TheGodFather replies with a random joke from all jokes or from a category.

How it works

  1. You: joke » TheGodFather: I was teaching my 6-year-old daughter how to unbuckle her seat belt. She asked, "Do I click the square?" I said yes. She then asked me, "Single click or double click?" 🤣🤣🤣 found in Children
  2. You: joke animals » TheGodFather: What does the lion say to his friends before they go out hunting for food? "Let us prey." 🤣🤣🤣 found in Animals

How to install

It is recommended to use a separate MySQL database. Download Jokes MySQL. You have to import jokes.sql.gz in the MySQL database using phpMyAdmin or Adminer.

Import SQL files with Adminer

method 1: select target database from the drop-down menu » Import [uncheck STOP ON ERRORS] » Browse... » Execute
method 2: (an alternative for big files) select target database from the drop-down menu » Import [uncheck STOP ON ERRORS], upload the .sql.gz file as adminer.sql.gz then Run file.


Webster Dictionary

Description

TheGodFather replies with a definition from Webster's Revised Unabridged Dictionary 1913.

How it works

You: define boat » TheGodFather: boat (n.) A small open vessel, or water craft, usually moved by cars or paddles, but often by a sail.

How to install

It is recommended to use a separate MySQL database. Download Webster MySQL. You have to import webster.sql.gz in the MySQL database using phpMyAdmin or Adminer.

Import SQL files with Adminer

method 1: select target database from the drop-down menu » Import [uncheck STOP ON ERRORS] » Browse... » Execute
method 2: (an alternative for big files) select target database from the drop-down menu » Import [uncheck STOP ON ERRORS], upload the .sql.gz file as adminer.sql.gz then Run file.


Wordset Dictionary

Description

TheGodFather replies with results from WordSet.org (abandoned project).

How it works

  1. You: describe hell » TheGodFather: hell (noun) means any place of pain and turmoil. Synonym: snake pit, inferno, hell on earth, hellhole Example: the hell of battle
  2. You: synonym hell » TheGodFather: hell = snake pit, inferno, hell on earth, hellhole

How to install

It is recommended to use a separate MySQL database. Download Wordset MySQL. You have to import wordset.sql.gz in the MySQL database using phpMyAdmin or Adminer.

Import SQL files with Adminer

method 1: select target database from the drop-down menu » Import [uncheck STOP ON ERRORS] » Browse... » Execute
method 2: (an alternative for big files) select target database from the drop-down menu » Import [uncheck STOP ON ERRORS], upload the .sql.gz file as adminer.sql.gz then Run file.


Haiku

Description

Returns a random haiku from a list of 5000.

How it works

How to install


SurpriseMe

Description

Replies with interesting facts from a large list.

How it works

How to install


SurpriseMe - multilang

Description

Replies with interesting facts from a large list and in different languages.

How it works

The keywords are: překvapení overraskelse überraschung surprise sorpresa yllätys etonne étonné έκπληξη meglepetés sorpresa verrassing surpriză överraskning prekvapenie

How to install


Pure Fun

Description

Returns a funny phrase (input: row number, random or input) from a list (tgf_purefun.txt) without showing the input.

This extension requires version 22.01 and the following stopword in AdminCP » Machines: 
/purefun

How it works

How to install


Page updated: 2024-01-03
 
Powered by BlaB! Pages