TheGodFather Extensions 1
News, Converters, Images, Translate, TTS, Search, Weather, last.fm, laut.fm, Statistics, Urban Dictionary
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.
Youtube
Description
Posts youtube videos with preview with:
yt https://youtu.be/nTqG5rsFeJI
youtube https://www.youtube.com/watch?v=nTqG5rsFeJI
How it works
You: yt https://youtu.be/nTqG5rsFeJI
ยป TheGodFather:
How to install
- Download YouTube, unzip and upload
tgf_youtube.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_youtube.php
with the proper URL (subset ยป Phrases). - Save with OKAY
News
Description
Returns up to 10 news + links on a particular topic or headlines by country/global using gnews.io API.
How it works
- You: news gb Boris Jonson ยป TheGodFather returns up to ten titles/links about Boris Johnson from UK news sites
- You: news. ยป TheGodFather: returns up to ten titles/links from German news sites
How to install
- Download News, unzip and upload
tgf_gnews.php
and the foldergnews_cache
to your server. Makegnews_cache
writeable (CHMOD to 777). - Register and obtain a free API-Token from gnews.io. Open
tgf_gnews.php
with a text editor and paste your API-Token under SETTINGS. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_gnews.php
with the proper URL (subset ยป Phrases). - Save with OKAY
C-F/Distance/Area Converter
Description
Converts miles into kilometres, km to miles, cm, inches, feet and sq feet to meters Celsius to Fahrenheit and vice versa.
How it works
- You: I walked 10 miles yesterday. ยป TheGodFather: 10mi = 16.09km
- You: It was freezing cold -10ยฐC. ยป TheGodFather: -10ยฐF equals -23.3ยฐC and -10ยฐC equals 14ยฐF
How to install
-
Download C-F/Distance Converter, unzip and upload
tgf_cfdistance.php
to your server. -
AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_cfdistance.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
-
Download Currency Converter, unzip and upload
tgf_currency.php
to your server. -
Create an empty file
fixer.io
to cache API calls, CHMOD it to 666 and set its path intgf_currency.php
. -
Go to fixer.io, sign up, obtain a free API key and paste it in
tgf_currency.php
instead of XXXXXXXXX. -
AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_currency.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
- Download Statistics, unzip, set MySQL database credentials in the PHP file (chat database name, MySQL user & password, chat table prefix) and upload
tgf_stats.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_stats.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
-
Download last.fm, unzip and upload
tgf_lastfm.php
to your server. -
Go to last.fm, sign up, obtain a free API key and paste it in
tgf_lastfm.php
instead of XXXXXXXXX. -
AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_lastfm.php
with the proper URL (subset ยป Phrases). - Save with OKAY
Radio laut.fm
Description
Replies with what's playing on laut.fm rock, jazz and dance stations (adjustable).
How it works
- You: rock ยป TheGodFather: laut.fm: ยซRockยป โถ Rocket Chief - Schoolhall
- You: jazz ยป TheGodFather: laut.fm: ยซJazzยป โถ Pat Metheny Group - James
How to install
-
Download Radio laut.fm, unzip and upload
tgf_radiolautfm.php
to your server. -
Stations can be replaced in the file.
-
AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_radiolautfm.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
-
Download OpenWeather, unzip and upload
tgf_openweather.php
to your server. -
Go to OpenWeatherMap, sign up, obtain a free API key and paste it in
tgf_openweather.php
instead of XXXXXXXXX. -
AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_openweather.php
with the proper URL (subset ยป Phrases). - Save with OKAY
Picture of ... DuckDuckGo
Description
Downloads and posts pictures using DuckDuckGo search engine.
How it works
You: picture of a dog ยป TheGodFather: ๐
How to install
- Download Picture of ... (DuckDuckGo), unzip and upload
tgf_picof_ddgo.php
to your server. - Read the comments, review and adjust all the settings in the file!
- AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_picof_ddgo.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
- Download Search with DuckDuckGo, unzip and upload
tgf_search_ddgo.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_search_ddgo.php
with the proper URL (subset ยป Phrases). - Save with OKAY
Show me ... Pixabay
Description
Downloads and posts pictures from pixabay.com.
How it works
You: show me a cat ยป TheGodFather: ๐
How to install
- Register at pixabay.com and obtain a free API key.
- Download Show me ... (Pixabay), unzip and upload
tgf_pixabay.php
to your server. - Read the comments, review and adjust all the settings in the file and provide an API key instead of XXXXXXXX!
- AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_pixabay.php
with the proper URL (subset ยป Phrases). - Save with OKAY
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
- You: tts-fr J'aimerais pouvoir parler swahili ยป TheGodFather: [ โถ ]
- You: tts-en I wish I could speak Swahili ยป TheGodFather: [ โถ ]
- You: tts-de Ich wรผnschte, ich kรถnnte Suaheli sprechen ยป TheGodFather: [ โถ ]
How to install
- Download TTS (Google) & unzip.
- Upload
0000TTS.php
in your/attachments
folder. - Upload
tgf_tts.php
to your server and make sure that the path to0000TTS.php
is set correctly. - AdminCP ยป Settings ยป General: Meta referrer must be set to same-origin
- AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_tts.php
with the proper URL (subset ยป Phrases). - Save with OKAY
This extension is based on a free Google API that might stop working at any time.
Translate
Description
Translates text using mymemory.translated.net API.
How it works
- You: translate en-fr Our documentation is extremely easy to understand. ยป TheGodFather: Notre documentation est extrรชmement facile ร comprendre.
How to install
- Download Translate & unzip.
- Upload
tgf_translate.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_translate.php
with the proper URL (subset ยป Phrases). - Save with OKAY
Urban Dictionary
Description
TheGodFather returns results from UrbanDictionary.
How it works
- You: urban jungle ยป TheGodFather: A large amount of pubic hair that needs shaving. My god, itโs a jungle down there!
- You: urban hell ยป TheGodFather: A place in Norway near Trondheim. Hell is nice this time of year, the fishing is good.
How to install
- Download Urban Dict, unzip & upload
tgf_urban.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_urban.php
with the proper URL (subset ยป Phrases). - Save with OKAY
This extension is based on a free Urban Dictionary API that might stop working at any time.
Urban Example
Description
TheGodFather returns the first example sentence from UrbanDictionary without showing the input.
This extension requires version 22.01 and the following stopword in AdminCP ยป Machines:
/exmp
How it works
- You: /exmp tosser ยป TheGodFather: Well, at first I thought this guy delivers, but in the end he was just another tosser.
How to install
- Download Urban Example, unzip & upload
tgf_urban_example.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_urban_example.php
with the proper URL (subset ยป Phrases). - Save with OKAY
This extension is based on a free Urban Dictionary API that might stop working at any time.
IRC-Like
Description
TheGodFather answers the IRC commands /me, /kick, /whois, /topic using a phrase from a predefined list. TheGodFather says anything you want them to when prefixed with /tgf
This extension requires version 22.01 and the following stopwords in AdminCP ยป Machines:
/topic,/me,/kick,/whois,/tgf,[me]
How it works
- You: /me is riding a pony. ยป TheGodFather: John is riding a pony. ๐ Good to know!
- You: /kick Peter ยป TheGodFather: Wanna kick? Buy new shoes!
- You: /whois Peter ยป TheGodFather: Peter? Please keep that murderous, thieving, bush-sucking wanker away from us.
- You: /topic gardening ยป TheGodFather: It was high time we changed the topic. Let's talk about gardening
- You: /tgf What the hell this means? ยป TheGodFather: What the hell this means?
How to install
- AdminCP ยป Machines ยป Stopwords:
/topic,/me,/kick,/whois,/tgf,[me]
and save with OKAY - Download IRC-Like.
- Unzip and upload
tgf_irclike.php
to your server. - AdminCP ยป Machines ยป TheGodFather ยป New Subset ยป Subset ยป IMPORT
- Replace
https://YOUR-URL.COM/tgf_irclike.php
with the proper URL (subset ยป Phrases). - Save with OKAY
ChatGPT AI Bot (deprecated)
Description
This extension is deprecated. From version 23.05 ChatGPT can be accessed directly without an extension. Use only in case you want to program conditions that cannot be achieved with settings in the AdminCP ยป Machines ยป TheGodFather ยป ChatGPT .
Answers any question in any language using a GPT3 AI model.
How it works
- You: GodFather, I wonder where you do your groceries? ยป TheGodFather: Well, Amazon Prime, of course!
- You: GodFather, Wie stehen Sie zur Kanzlerschaft von Angela Merkel? ยป TheGodFather: Ich bin begeistert! Wirklich, sie hat es geschafft, Deutschland in den letzten 14 Jahren zu einem noch besseren Ort zu machen. #IronieAus
How to install and use
Download from our download center. Read carefully the readme file.