TheGodFather Extensions 1

Converters, Images, TTS, Search, Weather


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.


C-F/Distance Converter

Description

Converts miles into kilometres, km to miles, Celsius to Fahrenheit and vice versa.

How it works

  1. You: I walked 10 miles yesterday. » TheGodFather: 10mi = 16.09km
  2. You: It was freezing cold -10°C. » TheGodFather: -10°F equals -23.3°C and -10°C equals 14°F

How to install


Currency Converter

Description

Converts AUD, CAD, USD, EUR, GBP, CHF, JPY, CNY, quid, bucks, Bitcoins - any to all.

How it works

You: That's expensive. I have 5 bucks only. » TheGodFather: Little is better than nothing. 5 in US dollars amounts to 4.22 in euros, 3.91 in British pounds, 34.18 in Chinese yuans, 531.13 in Japanese yens, 6.86 in Australian dollars, 6.59 in Canadian dollars, 4.54 in Swiss francs

How to install


Statistics

Description

Returns the number of messages posted, chat users and when the system was first installed.

How it works

You: stats » TheGodFather: That‘s what I call smart question! We have posted 🧮 2346774 messages since 📅 Jun 5, 2017 and we have 👥 7287 registered members. Our first member is 🦙 TheRipper (registered on Jun 5, 2017) and the latest one is 🕺 Johnas. Cheers mates! 💐 🎂 🎉

How to install


Last.fm

Description

Information about artists and bands using last.fm API

How it works

You: lastfm ike turner » TheGodFather: Ike Turner: Ike Wister Turner (November 5, 1931 - December 12, 2007) was an American guitarist, pianist, bandleader, talent scout, and record producer. Considered to be one of the fathers of rock and roll, his first recording, "Rocket 88" (incorrectly credited to "Jackie Brenston and his Delta Cats") in 1951, is considered by some to be the "first rock and roll song" ever. Turner is probably best known for his work with his ex-wife, Tina Turner as one half of the Ike & Tina Turner revue.

How to install


Radio laut.fm

Description

Replies with what's playing on laut.fm rock, jazz and dance stations (adjustable).

How it works

  1. You: rock » TheGodFather: laut.fm: «Rock» ▶ Rocket Chief - Schoolhall
  2. You: jazz » TheGodFather: laut.fm: «Jazz» ▶ Pat Metheny Group - James

How to install


Open Weather

Description

Returns current weather using OpenWather API.

How it works

You: weather Tokyo » TheGodFather: Current weather in TOKYO (JP): ⛅ few clouds, temp. 26.5°C (79.7°F), feels like 30.9°C (87.7°F)

How to install


Picture of ... DuckDuckGo

Description

Downloads and posts pictures using DuckDuckGo search engine.

How it works

You: picture of a dog » TheGodFather: 🐕

How to install

This extension saves the image files in a subfolder within your /attachments folder. You may want to consider some automation software to delete the files from time to time.


Search with DuckDuckGo

TheGodFather provides search results using DuckDuckGo search engine.

How it works

You: search longship » TheGodFather: A type of specialised Viking warships that have a long history in Scandinavia, with their... https://ddg.gg/Longship

How to install


Show me ... Pixabay

Description

Downloads and posts pictures from pixabay.com.

How it works

You: show me a cat » TheGodFather: 🐈

How to install

This extension saves the image files in a subfolder within your /attachments folder. You may want to consider some automation software to delete the files from time to time.


TTS (Text-To-Speech)

Description

Text-To-Speech using Google TTS engine.

How it works

How to install

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


Haiku

Description

Returns a random haiku from a list of 5000.

How it works

How to install


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