Add search

This commit is contained in:
Ceres 2025-11-15 18:17:45 +00:00
parent 3c97a2eab1
commit 4e09a7b831
Signed by: ceres-sees-all
GPG key ID: 9814758436430045

View file

@ -119,13 +119,14 @@ rRVj04/uQmY6Cf8=
$('body').terminal({
help: function() {
this.echo("Some commands to get you started:\n"+
"• about: show about info\n"+
"• services: links to all the services i host, run 'services help' to get a full list\n"+
"• pgp: import my pgp public key\n"+
"• meow: mrow\n"+
"\n "+
"\n"+
this.echo("Some commands to get you started:\n" +
"• about: show about info\n" +
"• services: links to all the services i host, run 'services help' to get a full list\n" +
`• search: search the internet using my searxng, run 'search "<query>"'\n`+
"• pgp: import my pgp public key\n" +
"• meow: mrow\n" +
"\n " +
"\n" +
"...Thats it for now, sorgy");
},
about: function() {
@ -184,23 +185,23 @@ I help moderate the linuxposting community across its many locations, including
open('https://sonarr.ceressees.dev', '_self')
}
else {
this.echo("List of services I host. Services marked with a * are public, so you can use them too!\n"+
"Run 'services <service>' to launch the specified option!"+
"\n\n•Audiobookshelf\n"+
"*Cinny\n"+
"*Element\n"+
"*Forgejo\n"+
"•Immich\n"+
"•Jellyfin\n"+
"•Komodo\n"+
"•Lidarr\n"+
"•Navidrome\n"+
"•Outline\n"+
"•Paperless\n"+
"*Piped\n"+
"•Radarr\n"+
"*Searxng\n"+
"•Soulseek\n"+
this.echo("List of services I host. Services marked with a * are public, so you can use them too!\n" +
"Run 'services <service>' to launch the specified option!" +
"\n\n•Audiobookshelf\n" +
"*Cinny\n" +
"*Element\n" +
"*Forgejo\n" +
"•Immich\n" +
"•Jellyfin\n" +
"•Komodo\n" +
"•Lidarr\n" +
"•Navidrome\n" +
"•Outline\n" +
"•Paperless\n" +
"*Piped\n" +
"•Radarr\n" +
"*Searxng\n" +
"•Soulseek\n" +
"•Sonarr")
}
},
@ -216,17 +217,22 @@ I help moderate the linuxposting community across its many locations, including
}
},
meow: function() {
let meows = ['meow','mrrrp','mrow','mrreow','miao','mraa']
let meows = ['meow', 'mrrrp', 'mrow', 'mrreow', 'miao', 'mraa']
let random = Math.floor(Math.random() * meows.length);
this.echo(meows[random])
},
search: function(query) {
let uri = "https://search.ceressees.dev/search?q="+query;
let encodedUri = encodeURI(uri);
open(encodedUri, '_self')
}
},
{
greetings: "[[; #f5c2e7;]"+
"▄▖ ▄▖ ▄▖▜ ▜\n"+
"▌ █▌▛▘█▌▛▘▄▖▚ █▌█▌▛▘▄▖▌▌▐ ▐ \n"+
"▙▖▙▖▌ ▙▖▄▌ ▄▌▙▖▙▖▄▌ ▛▌▐▖▐▖\n"+
"I'm watching you...]\n"+
greetings: "[[; #f5c2e7;]" +
"▄▖ ▄▖ ▄▖▜ ▜\n" +
"▌ █▌▛▘█▌▛▘▄▖▚ █▌█▌▛▘▄▖▌▌▐ ▐ \n" +
"▙▖▙▖▌ ▙▖▄▌ ▄▌▙▖▙▖▄▌ ▛▌▐▖▐▖\n" +
"I'm watching you...]\n" +
"Run 'help' to get started",
prompt: "[[;#f5c2e7;]:3] > ",
});