something
This commit is contained in:
parent
9af1c563f1
commit
c9aeed9057
|
|
@ -0,0 +1,23 @@
|
||||||
|
import fs from 'fs';
|
||||||
|
|
||||||
|
const files = fs.readdirSync('lib/', {
|
||||||
|
recursive: true
|
||||||
|
});
|
||||||
|
|
||||||
|
const q = process.argv[2];
|
||||||
|
|
||||||
|
var total = 0;
|
||||||
|
|
||||||
|
for (const f of files) {
|
||||||
|
try {
|
||||||
|
const b = fs.readFileSync(`lib/${f}`, 'utf-8');
|
||||||
|
if (b.includes(q) || f.includes(q)) {
|
||||||
|
total ++;
|
||||||
|
console.log(f);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`${total} files in total`);
|
||||||
|
|
@ -585,6 +585,7 @@ class Client extends MatrixApi {
|
||||||
/// The result of this call is stored in [wellKnown] for later use at runtime.
|
/// The result of this call is stored in [wellKnown] for later use at runtime.
|
||||||
@override
|
@override
|
||||||
Future<DiscoveryInformation> getWellknown() async {
|
Future<DiscoveryInformation> getWellknown() async {
|
||||||
|
Logs().v(userID!);
|
||||||
final wellKnownResponse = await httpClient.get(
|
final wellKnownResponse = await httpClient.get(
|
||||||
Uri.https(userID!.domain!, '/.well-known/matrix/client'),
|
Uri.https(userID!.domain!, '/.well-known/matrix/client'),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue