aboutsummaryrefslogtreecommitdiff
path: root/README.txt
blob: 26054ddc1fd5a5e834bb861fabecd1c8b3bec54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
limnoria.slackfacts.plugins README

This is a collection of Slackware-specific bot plugins for the
slackfacts bot, which lives in ##slackware and ##slackware.uk on
irc.libera.chat.

Commands supported are:

!man - display man page summaries (like "man -f" or "whatis").

!locate - find files in the Slackware package database, and show
          their locations.

!which - like !locate, but only searches bin/ directories.

!pkgsearch - search for packages by name in the Slackware package
             database.

!filesearch - find packages containing the given file (similar to
              "slackpkg file-search").

!srcsearch - given a package name, display the URL for the package's
             source directory on the slackware.uk mirror.

!pkg - wrapper for !pkgsearch, !filesearch, !srcsearch. slightly less
       typing involved, but you have to remember the options (see
       !pkg examples below).

All the commands have help messages, which you can access via
!help <command> (don't include the ! in <command> though).

Currently only the package database from Slackware 14.2 x86_64 is
supported.

To avoid spamming the channel, commands that can return multiple
results are limited to 5 results. If you use a private message to
run the command, you'll get the results privately, and the limit is
increased to 25.

Examples:

-- Search all manual sections:

<user> !man printf
<slackfacts> user: printf(1): format and print data | printf(3): formatted
             output conversion

-- Search only one manual section:

<user> !man 3 printf
<slackfacts> user: printf(3): formatted output conversion

-- Find files. This is a substring match, so:

<user> !locate /bin/ls
<slackfacts> user: /bin/ls | /bin/lsblk | /bin/lsmod [l] | /usr/bin/ls [l] |
             /usr/bin/lsattr | /usr/bin/lsb [l] | [too many results, only
             showing first 5]

[Note: symlinks are listed with [l] after the path]

-- Find the ls command:

<user> !which ls
<slackfacts> user: /bin/ls | /usr/bin/ls [l]

-- Find packages by name, search all categories:

<user> !pkgsearch core
<slackfacts> user: a/coreutils: core GNU utilities | kde/nepomuk-core:
             Nepomuk Core utilities and libraries | l/at-spi2-core:
             Assistive Technology Service Provider Interface core |
             l/xapian-core: Search Engine Library

With no options, !pkg is a synonym for !pkgsearch.

-- Find packages by name, search one category:

<user> !pkgsearch a/core
<slackfacts> user: a/coreutils: core GNU utilities

-- Find which package owns a file. This is an exact match if you give an
   absolute path (if the search term starts with a slash), or a substring
   match otherwise. You can also use * for globbing (e.g. /bin/ls*).

<user> !filesearch /bin/ls
<slackfacts> user: a/coreutils: core GNU utilities

!pkg -f is a synonym for !filesearch.

-- Find the source (and SlackBuild) for a package (exact match, no
globbing/wildcards allowed):

<user> !srcsearch coreutils
<slackfacts> user:
             https://slackware.uk/slackware/slackware64-14.2/source/a/coreutils/

!pkg -s is a synonym for !srcsearch.

If there had been an updated coreutils in patches/, the updated version's
source would have been found. For instance:

<user> !srcsearch irssi
<slackfacts> user:
             https://slackware.uk/slackware/slackware64-14.2/patches/source/irssi/