something

This commit is contained in:
OfficialDakari 2025-06-06 23:35:56 +05:00
parent 9af1c563f1
commit c9aeed9057
2 changed files with 24 additions and 0 deletions

23
find.js Normal file
View File

@ -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`);

View File

@ -585,6 +585,7 @@ class Client extends MatrixApi {
/// The result of this call is stored in [wellKnown] for later use at runtime.
@override
Future<DiscoveryInformation> getWellknown() async {
Logs().v(userID!);
final wellKnownResponse = await httpClient.get(
Uri.https(userID!.domain!, '/.well-known/matrix/client'),
);