TheGodFather Extensions 2

Bible, Dictionaries, Jokes


All extensions require version 20.09+. 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

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.


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.


Urban Dictionary

Description

TheGodFather returns results from UrbanDictionary.

How it works

How to install

This extension is based on a free Urban Dictionary API that might stop working at any time.


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.


Page updated: 2021-10-07
 
Powered by BlaB! Pages