[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jami-bot 4f3e48b6d3 10/12: adds suggestions by P. Kalud
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/jami-bot 4f3e48b6d3 10/12: adds suggestions by P. Kaludercic |
|
Date: |
Tue, 30 Jan 2024 06:58:32 -0500 (EST) |
branch: externals/jami-bot
commit 4f3e48b6d3661acc95c16bdb5344c6942ea61b3f
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Hanno Perrey <hanno@hoowl.se>
adds suggestions by P. Kaludercic
---
jami-bot.el | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/jami-bot.el b/jami-bot.el
index 8ad3ed0453..5ea9aad060 100644
--- a/jami-bot.el
+++ b/jami-bot.el
@@ -1,6 +1,6 @@
;;; jami-bot.el --- An extendable chat bot for the private messenger GNU Jami
-*- lexical-binding: t; -*-
-;; Copyright (C) 2023 Free Software Foundation, Inc.
+;; Copyright (C) 2023, 2024 Free Software Foundation, Inc.
;; Author: Hanno Perrey <http://gitlab.com/hperrey>
;; Maintainer: Hanno Perrey <hanno@hoowl.se>
@@ -73,14 +73,14 @@ consist of a single (lowercase) word. The corresponding
function needs to
accept the account id, the conversation id and the message alist as
arguments and return a string (that is sent as reply to the original message)."
:group 'jami-bot
- :type '(alist :key-type 'string :value-type 'function))
+ :type '(alist :key-type string :value-type function))
(defcustom jami-bot-text-message-functions nil
"A list of functions that will be called when processing a plain text
message.
Functions must take the ACCOUNT and CONVERSATION ids as well as
the actual MSG as arguments. Their return value will be ignored."
:group 'jami-bot
- :type '(group 'function))
+ :type '(group function))
(defcustom jami-bot-download-path "~/jami/"
"Path in which to store files downloaded from conversations.
@@ -95,9 +95,9 @@ Functions must take the ACCOUNT and CONVERSATION ids as well
as
the actual MSG and the local downloaded file name, DLNAME, as
arguments. Their return value will be ignored."
:group 'jami-bot
- :type '(group 'function))
+ :type '(group function))
-;; Internal variables
+;;;; Internal variables
(defvar jami-bot--jami-local-account-ids nil
"List of `jami' local accounts user ids and name pairs.
@@ -105,7 +105,7 @@ arguments. Their return value will be ignored."
Caches output of dbus-methods \"getAccountList\" and
\"getAccountDetails\". For internal use in `jami-bot'.")
-;; Functions
+;;;; Functions
(defun jami-bot--messageReceived-handler (account conversation msg)
"Handle messages from Jami's `messageReceived' D-Bus signal.
@@ -254,7 +254,9 @@ corresponding ids to which the message MSG belongs to."
(filename (cadr (assoc-string "displayName" msg)))
(dlpath (file-name-as-directory
(expand-file-name jami-bot-download-path)))
- (dlname (concat dlpath (format-time-string "%Y%m%d-%H%M") "_"
filename)))
+ (dlname (expand-file-name
+ (concat (format-time-string "%Y%m%d-%H%M") "_" filename)
+ dlpath)))
(unless (file-directory-p dlpath) (make-directory dlpath 't))
(message "jami-bot: downloading file %s" dlname)
(jami-bot--dbus-cfgmgr-call-method "downloadFile" account conversation id
fileid dlname)
- [elpa] branch externals/jami-bot created (now 4502fcfe8c), ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 63d7df8c5b 01/12: initial commit, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 8ee3d7d3ce 02/12: adds gitignore, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 21673c5844 03/12: fixes homepage adress, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 5d1a1f08b4 04/12: assign copyright to FSF, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 1da4d47158 09/12: fixes based on feedback by P. Kaludercic, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 4502fcfe8c 12/12: fix author's mail address, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot aa0dee230e 08/12: fix typo, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 9d6c5c2ca9 07/12: make variables customizable, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 0f86171465 06/12: add .elpaignore, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 4f3e48b6d3 10/12: adds suggestions by P. Kaludercic,
ELPA Syncer <=
- [elpa] externals/jami-bot 6823b52b3f 11/12: bump version number, ELPA Syncer, 2024/01/30
- [elpa] externals/jami-bot 349b3ab300 05/12: style changes, ELPA Syncer, 2024/01/30